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
|
|
|
|
web:
|
2020-02-09 22:54:14 +01:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: production.Dockerfile
|
2020-02-28 21:43:33 +01:00
|
|
|
container_name: posthog_web
|
2020-02-05 18:51:41 +01:00
|
|
|
volumes:
|
|
|
|
- .:/code
|
|
|
|
ports:
|
2020-02-17 18:54:04 +01:00
|
|
|
- "8000:8000"
|
2020-02-05 18:51:41 +01:00
|
|
|
environment:
|
|
|
|
IS_DOCKER: "true"
|
|
|
|
DATABASE_URL: "postgres://posthog@db:5432/posthog"
|
|
|
|
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
|