2020-04-22 12:12:37 +02:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
db:
|
|
|
|
image: postgres:alpine
|
|
|
|
container_name: posthog_db
|
|
|
|
environment:
|
|
|
|
POSTGRES_USER: posthog
|
|
|
|
POSTGRES_DB: posthog
|
|
|
|
POSTGRES_PASSWORD: posthog
|
2020-05-18 18:40:22 +02:00
|
|
|
ports:
|
|
|
|
- "5439:5432"
|
2020-04-22 12:12:37 +02:00
|
|
|
redis:
|
|
|
|
image: "redis:alpine"
|
|
|
|
container_name: posthog_redis
|
2020-05-18 18:40:22 +02:00
|
|
|
ports:
|
|
|
|
- "6379:6379"
|
2020-04-22 12:12:37 +02:00
|
|
|
web:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: dev.Dockerfile
|
2020-05-26 21:18:01 +02:00
|
|
|
command: ./bin/docker-dev-web
|
2020-04-22 12:12:37 +02:00
|
|
|
volumes:
|
|
|
|
- .:/code
|
|
|
|
ports:
|
|
|
|
- "8000:8000"
|
2020-06-02 11:39:53 +02:00
|
|
|
- "8234:8234"
|
2020-04-22 12:12:37 +02:00
|
|
|
environment:
|
|
|
|
IS_DOCKER: "true"
|
2020-04-24 14:25:37 +02:00
|
|
|
DATABASE_URL: "postgres://posthog:posthog@db:5432/posthog"
|
2020-04-22 12:12:37 +02:00
|
|
|
REDIS_URL: "redis://redis:6379/"
|
|
|
|
SECRET_KEY: "<randomly generated secret key>"
|
|
|
|
DEBUG: "true"
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
links:
|
|
|
|
- db:db
|
2020-04-24 14:25:37 +02:00
|
|
|
- redis:redis
|
2020-05-26 21:18:01 +02:00
|
|
|
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
|