2020-02-05 18:51:41 +01:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
db:
|
|
|
|
image: postgres:alpine
|
2020-02-28 21:43:33 +01:00
|
|
|
container_name: posthog_db
|
2020-02-05 18:51:41 +01:00
|
|
|
environment:
|
|
|
|
POSTGRES_USER: posthog
|
|
|
|
POSTGRES_DB: posthog
|
2020-04-06 22:40:22 +02:00
|
|
|
POSTGRES_PASSWORD: posthog
|
2020-02-05 18:51:41 +01:00
|
|
|
web:
|
2020-02-28 21:04:37 +01:00
|
|
|
image: posthog/posthog:latest
|
2020-02-28 21:43:33 +01:00
|
|
|
container_name: posthog_web
|
2020-02-05 18:51:41 +01:00
|
|
|
ports:
|
2020-02-17 18:54:04 +01:00
|
|
|
- "8000:8000"
|
2020-02-05 18:51:41 +01:00
|
|
|
environment:
|
|
|
|
IS_DOCKER: "true"
|
2020-04-06 22:40:22 +02:00
|
|
|
DATABASE_URL: "postgres://posthog:posthog@db:5432/posthog"
|
2020-02-05 18:51:41 +01:00
|
|
|
SECRET_KEY: "<randomly generated secret key>"
|
|
|
|
depends_on:
|
2020-02-17 18:54:04 +01:00
|
|
|
- db
|
2020-02-28 21:43:33 +01:00
|
|
|
links:
|
|
|
|
- db:db
|