2020-02-05 18:51:41 +01:00
|
|
|
services:
|
2020-08-18 11:08:40 +02:00
|
|
|
db:
|
|
|
|
container_name: posthog_db
|
|
|
|
environment:
|
|
|
|
POSTGRES_DB: posthog
|
|
|
|
POSTGRES_PASSWORD: posthog
|
2020-09-28 20:50:38 +02:00
|
|
|
POSTGRES_USER: posthog
|
|
|
|
image: postgres:alpine
|
2020-11-13 14:34:55 +01:00
|
|
|
volumes:
|
|
|
|
- postgres-data:/var/lib/postgresql/data
|
2020-08-18 11:08:40 +02:00
|
|
|
redis:
|
|
|
|
container_name: posthog_redis
|
2020-09-28 20:50:38 +02:00
|
|
|
image: redis:alpine
|
2020-08-18 11:08:40 +02:00
|
|
|
web:
|
|
|
|
container_name: posthog_web
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
2020-09-28 20:50:38 +02:00
|
|
|
environment:
|
|
|
|
DATABASE_URL: postgres://posthog:posthog@db:5432/posthog
|
|
|
|
IS_DOCKER: 'true'
|
|
|
|
REDIS_URL: redis://redis:6379/
|
|
|
|
SECRET_KEY: <randomly generated secret key>
|
|
|
|
image: posthog/posthog:latest
|
2020-08-18 11:08:40 +02:00
|
|
|
links:
|
|
|
|
- db:db
|
|
|
|
- redis:redis
|
2020-09-28 20:50:38 +02:00
|
|
|
ports:
|
|
|
|
- 8000:8000
|
|
|
|
- 80:8000
|
2020-11-13 14:34:55 +01:00
|
|
|
volumes:
|
|
|
|
postgres-data:
|
2020-09-28 20:50:38 +02:00
|
|
|
version: '3'
|