mirror of
https://github.com/PostHog/posthog.git
synced 2024-12-01 04:12:23 +01:00
49a15e9f53
* Enhance and optimize GitHub workflows * Prettier app.json * Update YAML list * Prettier workflows * Include YAML in prettier runs * Improve job naming * Update E2E workflow name * Prettier docker-compose YAML * Update workflows * Put freezegun into prod requirements * Update workflow names * Update workflow names again * Update ci-backend.yml * Update Lint with flake8 * Remove redundant eslint:ci script * Revert "Put freezegun into prod requirements" This reverts commit 460e3942d10194e9f46c8a2196ebd9ecc1f23c6f. * Install freezegun in workflow and update dev.txt * Prettier auto-image.yml * Add "CI" to ci-* names * Fix prettier:check * Add missing SECRET_KEY * Prettier 2 last files
59 lines
1.5 KiB
YAML
59 lines
1.5 KiB
YAML
version: '3'
|
|
|
|
services:
|
|
db:
|
|
image: postgres:alpine
|
|
container_name: posthog_db
|
|
environment:
|
|
POSTGRES_USER: posthog
|
|
POSTGRES_DB: posthog
|
|
POSTGRES_PASSWORD: posthog
|
|
ports:
|
|
- '5439:5432'
|
|
redis:
|
|
image: 'redis:alpine'
|
|
container_name: posthog_redis
|
|
ports:
|
|
- '6379:6379'
|
|
web:
|
|
build:
|
|
context: .
|
|
dockerfile: dev.Dockerfile
|
|
command: ./bin/docker-dev-web
|
|
volumes:
|
|
- .:/code
|
|
ports:
|
|
- '8000:8000'
|
|
- '8234:8234'
|
|
environment:
|
|
IS_DOCKER: 'true'
|
|
DATABASE_URL: 'postgres://posthog:posthog@db:5432/posthog'
|
|
REDIS_URL: 'redis://redis:6379/'
|
|
SECRET_KEY: '<randomly generated secret key>'
|
|
DEBUG: 'true'
|
|
depends_on:
|
|
- db
|
|
- redis
|
|
links:
|
|
- db:db
|
|
- redis:redis
|
|
worker:
|
|
build:
|
|
context: .
|
|
dockerfile: dev.Dockerfile
|
|
command: ./bin/docker-worker
|
|
volumes:
|
|
- .:/code
|
|
environment:
|
|
IS_DOCKER: 'true'
|
|
DATABASE_URL: 'postgres://posthog:posthog@db:5432/posthog'
|
|
REDIS_URL: 'redis://redis:6379/'
|
|
SECRET_KEY: '<randomly generated secret key>'
|
|
DEBUG: 'true'
|
|
depends_on:
|
|
- db
|
|
- redis
|
|
links:
|
|
- db:db
|
|
- redis:redis
|