-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (49 loc) · 1.22 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
version: '3.2' # version: '3.2' also will works
networks:
swarm_network:
driver: overlay
services:
page1:
image: maranatha/page1:v1
deploy:
mode: replicated
replicas: 1
placement:
constraints:
- node.hostname == npi3
ports:
- published: 81
target: 81
mode: host
environment:
- NAME=WiFiUS
networks:
swarm_network:
page2:
image: maranatha/page2:v1
deploy:
mode: replicated
replicas: 1
placement:
constraints:
- node.hostname == npi1
ports:
- published: 5000
target: 5000
mode: host
environment:
- NAME=NAP
networks:
swarm_network:
visualizer:
image: alexellis2/visualizer-arm:latest
ports:
- "8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
deploy:
placement:
constraints:
- node.role == manager
networks:
swarm_network: