mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-24 09:14:46 +01:00
9d7dae201a
* Make production docker-compose.yml generated * Move "version" to top * Update instructions * Leave a fallback docker-compose.yml * Fix grammar * Update instructions * Delete docker-compose.proxy.yml * Improve error handling * Update script * Update wording
30 lines
783 B
YAML
30 lines
783 B
YAML
services:
|
|
db:
|
|
container_name: posthog_db
|
|
environment:
|
|
POSTGRES_DB: posthog
|
|
POSTGRES_PASSWORD: posthog
|
|
POSTGRES_USER: posthog
|
|
image: postgres:alpine
|
|
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
|
|
version: '3'
|