forked from PostHog/posthog
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.dev.yml
58 lines (57 loc) · 1.22 KB
/
docker-compose.dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
version: '3'
services:
db:
image: postgres:alpine
container_name: posthog_db
environment:
POSTGRES_USER: posthog
POSTGRES_DB: posthog
POSTGRES_PASSWORD: posthog
ports:
- "5439:5432"
redis:
image: "redis:alpine"
container_name: posthog_redis
ports:
- "6379:6379"
web:
build:
context: .
dockerfile: dev.Dockerfile
command: ./bin/docker-dev-web
volumes:
- .:/code
ports:
- "8000:8000"
- "8234:8234"
environment:
IS_DOCKER: "true"
DATABASE_URL: "postgres://posthog:posthog@db:5432/posthog"
REDIS_URL: "redis://redis:6379/"
SECRET_KEY: "<randomly generated secret key>"
DEBUG: "true"
depends_on:
- db
- redis
links:
- db:db
- redis:redis
worker:
build:
context: .
dockerfile: dev.Dockerfile
command: ./bin/docker-worker
volumes:
- .:/code
environment:
IS_DOCKER: "true"
DATABASE_URL: "postgres://posthog:posthog@db:5432/posthog"
REDIS_URL: "redis://redis:6379/"
SECRET_KEY: "<randomly generated secret key>"
DEBUG: "true"
depends_on:
- db
- redis
links:
- db:db
- redis:redis