2020-05-19 20:48:10 +02:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
db:
|
|
|
|
image: postgres:alpine
|
|
|
|
container_name: posthog_db
|
|
|
|
environment:
|
|
|
|
POSTGRES_USER: posthog
|
|
|
|
POSTGRES_DB: posthog
|
|
|
|
POSTGRES_PASSWORD: posthog
|
|
|
|
redis:
|
|
|
|
image: "redis:alpine"
|
|
|
|
container_name: posthog_redis
|
|
|
|
web:
|
|
|
|
container_name: posthog_server
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: dev.Dockerfile
|
|
|
|
command: ./bin/docker-dev & tail -f /dev/null
|
|
|
|
volumes:
|
|
|
|
- .:/code
|
|
|
|
ports:
|
|
|
|
- "8000:8000"
|
|
|
|
environment:
|
|
|
|
IS_DOCKER: "true"
|
|
|
|
DATABASE_URL: "postgres://posthog:posthog@db:5432/posthog"
|
|
|
|
REDIS_URL: "redis://redis:6379/"
|
|
|
|
SECRET_KEY: "<randomly generated secret key>"
|
|
|
|
DEBUG: 1
|
|
|
|
DISABLE_SECURE_SSL_REDIRECT: 1
|
2020-05-22 18:34:48 +02:00
|
|
|
OPT_OUT_CAPTURE: 1
|
2020-05-19 20:48:10 +02:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
links:
|
|
|
|
- db:db
|
|
|
|
- redis:redis
|