0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-30 19:41:46 +01:00
posthog/docker-compose.dev.yml
2020-10-16 08:47:47 +01:00

59 lines
1.5 KiB
YAML

version: '3'
services:
db:
image: postgres:11-alpine
container_name: posthog_db
environment:
POSTGRES_USER: posthog
POSTGRES_DB: posthog
POSTGRES_PASSWORD: posthog
ports:
- '5439:5432'
redis:
image: 'redis:5-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