0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-27 16:26:50 +01:00
posthog/docker-compose.dev.yml
Buddy Williams c893765973
Docker support on the Apple M1 chip / arm64 (#4024)
* First pass at docker support on the Apple M1 chip

* Added version to libpq-dev so that it passes linter checks; Removed comments
2021-04-19 10:12:02 -04:00

54 lines
1.3 KiB
YAML

version: '3'
services:
db:
image: postgres:12-alpine
container_name: posthog_db
environment:
POSTGRES_USER: posthog
POSTGRES_DB: posthog
POSTGRES_PASSWORD: posthog
ports:
- '5432:5432'
redis:
image: 'redis:5-alpine'
container_name: posthog_redis
ports:
- '6379:6379'
backend: &backend
build:
context: .
dockerfile: dev.Dockerfile
command: ./bin/docker-backend
volumes:
- .:/code
environment:
DATABASE_URL: 'postgres://posthog:posthog@db:5432/posthog'
REDIS_URL: 'redis://redis:6379/'
SECRET_KEY: '<randomly generated secret key>'
DEBUG: 'true'
PGHOST: db
PGUSER: posthog
PGPASSWORD: posthog
depends_on:
- db
- redis
links:
- db:db
- redis:redis
ports:
- '8000:8000'
#frontend:
#<<: *backend
#command: ./bin/docker-frontend
#ports:
#- '8234:8234'
worker:
<<: *backend
command: ./bin/docker-worker
ports: []
depends_on:
- db
- redis
- backend