-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
115 lines (114 loc) · 3.01 KB
/
compose.yaml
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
services:
node-a:
image: nhttpd
container_name: node-a
volumes:
- ./node-a:/usr/local/apache2/htdocs
environment:
DISPLAY: 10.0.0.38:0.0
networks:
net-1:
ipv4_address: 10.0.1.3
cap_add:
- NET_ADMIN
command: /usr/local/apache2/htdocs/startup-commands.sh
node-b:
image: nhttpd
container_name: node-b
volumes:
- ./node-b:/usr/local/apache2/htdocs
environment:
DISPLAY: 10.0.0.38:0.0
networks:
net-2:
ipv4_address: 10.0.2.3
cap_add:
- NET_ADMIN
command: /usr/local/apache2/htdocs/startup-commands.sh
node-c:
image: nhttpd
container_name: node-c
volumes:
- ./node-c:/usr/local/apache2/htdocs
environment:
DISPLAY: 10.0.0.38:0.0
networks:
net-3:
ipv4_address: 10.0.3.3
cap_add:
- NET_ADMIN
command: /usr/local/apache2/htdocs/startup-commands.sh
router-1:
image: nhttpd
container_name: router-1
volumes:
- ./router-1:/usr/local/apache2/htdocs
environment:
DISPLAY: 10.0.0.38:0.0
networks:
net-1:
ipv4_address: 10.0.1.2
net-4:
ipv4_address: 10.0.4.2
cap_add:
- NET_ADMIN
command: /usr/local/apache2/htdocs/startup-commands.sh
router-2:
image: nhttpd
container_name: router-2
volumes:
- ./router-2:/usr/local/apache2/htdocs
environment:
DISPLAY: 10.0.0.38:0.0
networks:
net-2:
ipv4_address: 10.0.2.2
net-4:
ipv4_address: 10.0.4.3
cap_add:
- NET_ADMIN
command: /usr/local/apache2/htdocs/startup-commands.sh
router-3:
image: nhttpd
container_name: router-3
volumes:
- ./router-3:/usr/local/apache2/htdocs
environment:
DISPLAY: 10.0.0.38:0.0
networks:
net-3:
ipv4_address: 10.0.3.2
net-4:
ipv4_address: 10.0.4.4
cap_add:
- NET_ADMIN
command: /usr/local/apache2/htdocs/startup-commands.sh
networks:
net-1:
name: net-1
ipam:
driver: default
config:
- subnet: 10.0.1.0/24
gateway: 10.0.1.1
net-2:
name: net-2
ipam:
driver: default
config:
- subnet: 10.0.2.0/24
gateway: 10.0.2.1
net-3:
name: net-3
ipam:
driver: default
config:
- subnet: 10.0.3.0/24
gateway: 10.0.3.1
net-4:
name: net-4
ipam:
driver: default
config:
- subnet: 10.0.4.0/24
gateway: 10.0.4.1