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-04-07 13:47:28 +02:00
|
|
|
redis:
|
|
|
|
image: "redis:alpine"
|
2020-04-07 14:54:09 +02:00
|
|
|
container_name: posthog_redis
|
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-07-20 21:41:43 +02:00
|
|
|
- "80: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-04-07 13:47:28 +02:00
|
|
|
REDIS_URL: "redis://redis:6379/"
|
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-04-07 13:47:28 +02:00
|
|
|
- redis
|
2020-02-28 21:43:33 +01:00
|
|
|
links:
|
|
|
|
- db:db
|
2020-04-07 13:47:28 +02:00
|
|
|
- redis:redis
|