-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (43 loc) · 785 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
44 lines (43 loc) · 785 Bytes
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
version: "3"
services:
sender:
image: python-send
deploy:
mode: global
depends_on:
- rabbit
ports:
- "80:80"
networks:
- debug
recv:
image: python-recv
depends_on:
- rabbit
deploy:
mode: global
networks:
- debug
# docker run -p 15672:15672 -p 5672:5672 rabbitmq:3-management
rabbit:
image: rabbitmq:3-management
ports:
- "15672:15672"
- "5672:5672"
deploy:
replicas: 1
networks:
- debug
visualizer:
image: dockersamples/visualizer:stable
ports:
- "8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
deploy:
placement:
constraints: [node.role == manager]
networks:
- debug
networks:
debug: