-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
66 lines (60 loc) · 1.23 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
59
60
61
62
63
64
65
66
version: '3'
services:
db:
restart: unless-stopped
image: postgres
env_file:
- .env
ports:
- "5432:5432"
volumes:
- db_data:/var/lib/postgresql/data
redis:
image: "redis:4"
restart: unless-stopped
hostname: redis
expose:
- "6379"
rabbit:
hostname: rabbit
restart: unless-stopped
image: rabbitmq:3-management
env_file:
- .env
ports:
- "5672:5672" # we forward this port because it's useful for debugging
- "15672:15672" # here, we can access rabbitmq management plugin
backend:
restart: unless-stopped
build:
context: ./backend
dockerfile: Dockerfile.backend
volumes:
- ./backend:/code
ports:
- "80:8000"
- "3000:3000"
env_file:
- .env
command: ["/code/wait-for-postgres.sh", "db", "/code/init.sh"]
depends_on:
- db
- rabbit
- redis
worker:
restart: unless-stopped
build:
context: ./backend
dockerfile: Dockerfile.worker
volumes:
- ./backend:/code
env_file:
- .env
#command: ["/code/wait-for-postgres.sh", "db", "/code/run-celery.sh"]
depends_on:
- db
- rabbit
- redis
tty: true
volumes:
db_data: