0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 04:12:23 +01:00
posthog/docker-compose.yml
2020-04-07 14:54:09 +02:00

30 lines
650 B
YAML

version: '3'
services:
db:
image: postgres:alpine
container_name: posthog_db
environment:
POSTGRES_USER: posthog
POSTGRES_DB: posthog
POSTGRES_PASSWORD: posthog
redis:
image: "redis:alpine"
container_name: posthog_redis
web:
image: posthog/posthog:latest
container_name: posthog_web
ports:
- "8000:8000"
environment:
IS_DOCKER: "true"
DATABASE_URL: "postgres://posthog:posthog@db:5432/posthog"
REDIS_URL: "redis://redis:6379/"
SECRET_KEY: "<randomly generated secret key>"
depends_on:
- db
- redis
links:
- db:db
- redis:redis