0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-30 19:41:46 +01:00
posthog/docker-compose.yml

34 lines
881 B
YAML
Raw Permalink Normal View History

2020-02-05 18:51:41 +01:00
services:
db:
container_name: posthog_db
environment:
POSTGRES_DB: posthog
POSTGRES_PASSWORD: posthog
POSTGRES_USER: posthog
image: postgres:alpine
volumes:
- postgres-data:/var/lib/postgresql/data
redis:
container_name: posthog_redis
image: redis:alpine
web:
container_name: posthog_web
depends_on:
- db
- redis
environment:
DATABASE_URL: postgres://posthog:posthog@db:5432/posthog
IS_DOCKER: 'true'
REDIS_URL: redis://redis:6379/
SECRET_KEY: <randomly generated secret key>
image: posthog/posthog:latest
links:
- db:db
- redis:redis
ports:
- 8000:8000
- 80:8000
volumes:
postgres-data:
version: '3'