-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (61 loc) · 1.36 KB
/
docker-compose.yml
File metadata and controls
68 lines (61 loc) · 1.36 KB
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
67
68
version: "3.8"
services:
application:
image: application
build:
context: ./application
dockerfile: Dockerfile
depends_on:
worker-a:
condition: service_started
worker-b:
condition: service_started
worker-a:
image: worker-type-a
build:
context: ./worker_type_a
dockerfile: Dockerfile
deploy:
replicas: 10
depends_on:
rabbitmq:
condition: service_healthy
worker-b:
image: worker-type-b
build:
context: ./worker_type_b
dockerfile: Dockerfile
deploy:
replicas: 1
depends_on:
rabbitmq:
condition: service_healthy
rabbitmq:
image: bitnami/rabbitmq:3.8.27
ports:
- "15672:15672"
- "5673:5672"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:15672" ]
interval: 10s
timeout: 10s
retries: 5
flower:
image: mher/flower:2.0.1
environment:
- CELERY_BROKER_URL=amqp://user:bitnami@rabbitmq
- FLOWER_PORT=8888
- FLOWER_PERSISTENT=True
- FLOWER_STATE_SAVE_INTERVAL=10000 # save state every 10 seconds
- FLOWER_DB=/data/flower.db
volumes:
- flower_storage:/data
ports:
- "8889:8888"
depends_on:
rabbitmq:
condition: service_healthy
application:
condition: service_started
volumes:
flower_storage: