version: '3' services: db: image: postgres:alpine container_name: posthog_db environment: POSTGRES_USER: posthog POSTGRES_DB: posthog POSTGRES_PASSWORD: posthog web: image: posthog/posthog:latest container_name: posthog_web ports: - "8000:8000" environment: IS_DOCKER: "true" DATABASE_URL: "postgres://posthog:posthog@db:5432/posthog" SECRET_KEY: "" depends_on: - db links: - db:db