version: '3' services: db: image: postgres:alpine environment: POSTGRES_USER: posthog POSTGRES_DB: posthog web: build: context: . dockerfile: production.Dockerfile command: gunicorn posthog.wsgi --bind 0.0.0.0:5000 --log-file - volumes: - .:/code ports: - "5000:5000" environment: IS_DOCKER: "true" DATABASE_URL: "postgres://posthog@db:5432/posthog" SECRET_KEY: "" depends_on: - db