0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-22 08:40:03 +01:00
posthog/docker-compose.yml
2020-02-05 09:51:41 -08:00

22 lines
469 B
YAML

version: '3'
services:
db:
image: postgres:alpine
environment:
POSTGRES_USER: posthog
POSTGRES_DB: posthog
web:
build: .
command: gunicorn posthog.wsgi --bind 0.0.0.0:5000 --log-file -
volumes:
- .:/code
ports:
- "5000:5000"
environment:
IS_DOCKER: "true"
DEBUG: 1
DATABASE_URL: "postgres://posthog@db:5432/posthog"
SECRET_KEY: "<randomly generated secret key>"
depends_on:
- db