-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
62 lines (55 loc) · 1.05 KB
/
docker-compose.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
version: '3'
services:
app:
container_name: app
build: .
ports:
- "8888:8888"
volumes:
- .:/app
restart: always
worker1:
container_name: worker1
build: .
command: celery -A DjangoCeleryExample worker -B -l info -Q queue1
volumes:
- .:/app
depends_on:
- app
- rabbitmq
worker2:
container_name: worker2
build: .
command: celery -A DjangoCeleryExample worker -l info -Q queue2
volumes:
- .:/app
depends_on:
- app
- rabbitmq
worker3:
container_name: worker3
build: .
command: celery -A DjangoCeleryExample worker -B -l info
volumes:
- .:/app
depends_on:
- app
- rabbitmq
rabbitmq:
image: "rabbitmq"
container_name: rabbitmq
ports:
- "5672:5672"
- "15672:15672"
depends_on:
- app
flower:
container_name: flower
build: .
command: celery -A DjangoCeleryExample flower --port=5555
volumes:
- .:/app
ports:
- "5556:5555"
depends_on:
- rabbitmq