-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdemo.yml
126 lines (123 loc) · 3.06 KB
/
demo.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
version: '2'
services:
master:
container_name: salt-master
hostname: salt-master
# Also: fsoppelsa/saltmaster on the Hub
# It's an enabled Docker autobuild
build: saltmaster/
# $n is: accept $n minions
command: /root/start.sh 6
ports:
- "4505:4505"
- "4506:4506"
depends_on:
- controller01
- controller02
- controller03
- compute01
- compute02
- web01
networks:
mgmt:
ipv4_address: 172.28.0.2
ipv6_address: 2001:3984:3989::10
public:
ipv4_address: 172.29.0.2
ipv6_address: 2001:3984:3990::10
controller01:
container_name: controller01
hostname: ctl01
# Also: fsoppelsa/saltminion on the Hub
build: saltminion/
entrypoint: /root/wait-for-minion-up.sh
networks:
mgmt:
ipv4_address: 172.28.0.3
ipv6_address: 2001:3984:3989::11
public:
ipv4_address: 172.29.0.3
ipv6_address: 2001:3984:3990::11
controller02:
container_name: controller02
hostname: ctl02
build: saltminion/
entrypoint: /root/wait-for-minion-up.sh
networks:
mgmt:
ipv4_address: 172.28.0.4
ipv6_address: 2001:3984:3989::12
public:
ipv4_address: 172.29.0.4
ipv6_address: 2001:3984:3990::12
controller03:
container_name: controller03
hostname: ctl03
build: saltminion/
entrypoint: /root/wait-for-minion-up.sh
networks:
mgmt:
ipv4_address: 172.28.0.5
ipv6_address: 2001:3984:3989::13
public:
ipv4_address: 172.29.0.5
ipv6_address: 2001:3984:3990::13
compute01:
container_name: compute01
hostname: cmp01
build: saltminion/
entrypoint: /root/wait-for-minion-up.sh
networks:
mgmt:
ipv4_address: 172.28.0.10
ipv6_address: 2001:3984:3989::20
public:
ipv4_address: 172.29.0.10
ipv6_address: 2001:3984:3990::20
compute02:
container_name: compute02
hostname: cmp02
build: saltminion/
entrypoint: /root/wait-for-minion-up.sh
networks:
mgmt:
ipv4_address: 172.28.0.11
ipv6_address: 2001:3984:3989::21
public:
ipv4_address: 172.29.0.11
ipv6_address: 2001:3984:3990::21
web01:
container_name: web01
hostname: web01
build: saltminion/
entrypoint: /root/wait-for-minion-up.sh
networks:
mgmt:
ipv4_address: 172.28.0.20
ipv6_address: 2001:3984:3989::30
public:
ipv4_address: 172.29.0.20
ipv6_address: 2001:3984:3990::30
networks:
mgmt:
driver: bridge
driver_opts:
com.docker.network.enable_ipv6: "true"
ipam:
driver: default
config:
- subnet: 172.28.0.0/24
gateway: 172.28.0.1
- subnet: 2001:3984:3989::/64
gateway: 2001:3984:3989::1
public:
driver: bridge
driver_opts:
com.docker.network.enable_ipv6: "true"
ipam:
driver: default
config:
- subnet: 172.29.0.0/24
gateway: 172.29.0.1
- subnet: 2001:3984:3990::/64
gateway: 2001:3984:3990::1