0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 18:07:17 +01:00
posthog/docker-compose.yml

31 lines
668 B
YAML
Raw Normal View History

2020-02-05 18:51:41 +01:00
version: '3'
services:
db:
image: postgres:alpine
2020-02-28 21:43:33 +01:00
container_name: posthog_db
2020-02-05 18:51:41 +01:00
environment:
POSTGRES_USER: posthog
POSTGRES_DB: posthog
POSTGRES_PASSWORD: posthog
2020-04-07 13:47:28 +02:00
redis:
image: "redis:alpine"
2020-04-07 14:54:09 +02:00
container_name: posthog_redis
2020-02-05 18:51:41 +01:00
web:
2020-02-28 21:04:37 +01:00
image: posthog/posthog:latest
2020-02-28 21:43:33 +01:00
container_name: posthog_web
2020-02-05 18:51:41 +01:00
ports:
2020-02-17 18:54:04 +01:00
- "8000:8000"
- "80:8000"
2020-02-05 18:51:41 +01:00
environment:
IS_DOCKER: "true"
DATABASE_URL: "postgres://posthog:posthog@db:5432/posthog"
2020-04-07 13:47:28 +02:00
REDIS_URL: "redis://redis:6379/"
2020-02-05 18:51:41 +01:00
SECRET_KEY: "<randomly generated secret key>"
depends_on:
2020-02-17 18:54:04 +01:00
- db
2020-04-07 13:47:28 +02:00
- redis
2020-02-28 21:43:33 +01:00
links:
- db:db
2020-04-07 13:47:28 +02:00
- redis:redis