-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-demo.yaml
171 lines (170 loc) · 5.5 KB
/
docker-compose-demo.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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
version: '3.6'
services:
as1br1:
image: scion_host:latest
container_name: as1br1
environment:
- SUPERVISOR_PROCESS_GROUP=as1-ff00_0_1_BR1
volumes:
- ${SCION_ROOT:?}/bin:/home/scion/scion/bin:ro
- ${SCION_APPS:?}/bin:/home/scion/scion-apps/bin:ro
- ${SCION_ROOT:?}/gen:/home/scion/scion/gen:ro
- ${SCION_ROOT:?}/gen-cache:/home/scion/scion/gen-cache
- ${SCION_ROOT:?}/gen-certs:/home/scion/scion/gen-certs
- ${SCION_ROOT:?}/logs:/home/scion/scion/logs
cap_add:
- NET_ADMIN
- NET_RAW
networks:
as1_int:
ipv4_address: 10.2.1.2
as1br2:
image: scion_host:latest
container_name: as1br2
environment:
- SUPERVISOR_PROCESS_GROUP=as1-ff00_0_1_BR2
volumes:
- ${SCION_ROOT:?}/bin:/home/scion/scion/bin:ro
- ${SCION_APPS:?}/bin:/home/scion/scion-apps/bin:ro
- ${SCION_ROOT:?}/gen:/home/scion/scion/gen:ro
- ${SCION_ROOT:?}/gen-cache:/home/scion/scion/gen-cache
- ${SCION_ROOT:?}/gen-certs:/home/scion/scion/gen-certs
- ${SCION_ROOT:?}/logs:/home/scion/scion/logs
cap_add:
- NET_ADMIN
- NET_RAW
networks:
as1_int:
ipv4_address: 10.2.1.3
as1br3:
image: scion_host:latest
container_name: as1br3
environment:
- SUPERVISOR_PROCESS_GROUP=as1-ff00_0_1_BR3
volumes:
- ${SCION_ROOT:?}/bin:/home/scion/scion/bin:ro
- ${SCION_APPS:?}/bin:/home/scion/scion-apps/bin:ro
- ${SCION_ROOT:?}/gen:/home/scion/scion/gen:ro
- ${SCION_ROOT:?}/gen-cache:/home/scion/scion/gen-cache
- ${SCION_ROOT:?}/gen-certs:/home/scion/scion/gen-certs
- ${SCION_ROOT:?}/logs:/home/scion/scion/logs
cap_add:
- NET_ADMIN
- NET_RAW
networks:
as1_int:
ipv4_address: 10.2.1.4
as1br4:
image: scion_host:latest
container_name: as1br4
environment:
- SUPERVISOR_PROCESS_GROUP=as1-ff00_0_1_BR4
volumes:
- ${SCION_ROOT:?}/bin:/home/scion/scion/bin:ro
- ${SCION_APPS:?}/bin:/home/scion/scion-apps/bin:ro
- ${SCION_ROOT:?}/gen:/home/scion/scion/gen:ro
- ${SCION_ROOT:?}/gen-cache:/home/scion/scion/gen-cache
- ${SCION_ROOT:?}/gen-certs:/home/scion/scion/gen-certs
- ${SCION_ROOT:?}/logs:/home/scion/scion/logs
cap_add:
- NET_ADMIN
- NET_RAW
networks:
as1_int:
ipv4_address: 10.2.1.5
as2:
image: scion_host:latest
container_name: as2
environment:
- SUPERVISOR_PROCESS_GROUP=as1-ff00_0_2
volumes:
- ${SCION_ROOT:?}/bin:/home/scion/scion/bin:ro
- ${SCION_APPS:?}/bin:/home/scion/scion-apps/bin:ro
- ${SCION_ROOT:?}/gen:/home/scion/scion/gen:ro
- ${SCION_ROOT:?}/gen-cache:/home/scion/scion/gen-cache
- ${SCION_ROOT:?}/gen-certs:/home/scion/scion/gen-certs
- ${SCION_ROOT:?}/logs:/home/scion/scion/logs
cap_add:
- NET_ADMIN
- NET_RAW
as3:
image: scion_host:latest
container_name: as3
environment:
- SUPERVISOR_PROCESS_GROUP=as1-ff00_0_3
volumes:
- ${SCION_ROOT:?}/bin:/home/scion/scion/bin:ro
- ${SCION_APPS:?}/bin:/home/scion/scion-apps/bin:ro
- ${SCION_ROOT:?}/gen:/home/scion/scion/gen:ro
- ${SCION_ROOT:?}/gen-cache:/home/scion/scion/gen-cache
- ${SCION_ROOT:?}/gen-certs:/home/scion/scion/gen-certs
- ${SCION_ROOT:?}/logs:/home/scion/scion/logs
cap_add:
- NET_ADMIN
- NET_RAW
as4:
image: scion_host:latest
container_name: as4
environment:
- SUPERVISOR_PROCESS_GROUP=as1-ff00_0_4
volumes:
- ${SCION_ROOT:?}/bin:/home/scion/scion/bin:ro
- ${SCION_APPS:?}/bin:/home/scion/scion-apps/bin:ro
- ${SCION_ROOT:?}/gen:/home/scion/scion/gen:ro
- ${SCION_ROOT:?}/gen-cache:/home/scion/scion/gen-cache
- ${SCION_ROOT:?}/gen-certs:/home/scion/scion/gen-certs
- ${SCION_ROOT:?}/logs:/home/scion/scion/logs
cap_add:
- NET_ADMIN
- NET_RAW
as5:
image: scion_host:latest
container_name: as5
environment:
- SUPERVISOR_PROCESS_GROUP=as1-ff00_0_5
volumes:
- ${SCION_ROOT:?}/bin:/home/scion/scion/bin:ro
- ${SCION_APPS:?}/bin:/home/scion/scion-apps/bin:ro
- ${SCION_ROOT:?}/gen:/home/scion/scion/gen:ro
- ${SCION_ROOT:?}/gen-cache:/home/scion/scion/gen-cache
- ${SCION_ROOT:?}/gen-certs:/home/scion/scion/gen-certs
- ${SCION_ROOT:?}/logs:/home/scion/scion/logs
cap_add:
- NET_ADMIN
- NET_RAW
as6:
image: scion_host:latest
container_name: as6
environment:
- SUPERVISOR_PROCESS_GROUP=as1-ff00_0_6
volumes:
- ${SCION_ROOT:?}/bin:/home/scion/scion/bin:ro
- ${SCION_APPS:?}/bin:/home/scion/scion-apps/bin:ro
- ${SCION_ROOT:?}/gen:/home/scion/scion/gen:ro
- ${SCION_ROOT:?}/gen-cache:/home/scion/scion/gen-cache
- ${SCION_ROOT:?}/gen-certs:/home/scion/scion/gen-certs
- ${SCION_ROOT:?}/logs:/home/scion/scion/logs
cap_add:
- NET_ADMIN
- NET_RAW
as7:
image: scion_host:latest
container_name: as7
environment:
- SUPERVISOR_PROCESS_GROUP=as1-ff00_0_7
volumes:
- ${SCION_ROOT:?}/bin:/home/scion/scion/bin:ro
- ${SCION_APPS:?}/bin:/home/scion/scion-apps/bin:ro
- ${SCION_ROOT:?}/gen:/home/scion/scion/gen:ro
- ${SCION_ROOT:?}/gen-cache:/home/scion/scion/gen-cache
- ${SCION_ROOT:?}/gen-certs:/home/scion/scion/gen-certs
- ${SCION_ROOT:?}/logs:/home/scion/scion/logs
cap_add:
- NET_ADMIN
- NET_RAW
networks:
as1_int:
name: as1_int
ipam:
config:
- subnet: 10.2.1.0/24