-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-build-top01.yaml
More file actions
492 lines (468 loc) · 11.6 KB
/
Copy pathdocker-compose-build-top01.yaml
File metadata and controls
492 lines (468 loc) · 11.6 KB
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
version: "3.8"
services:
free5gc-i-upf:
container_name: i-upf
build:
context: ./nf_upf
args:
DEBUG_TOOLS: "false"
ports:
- "5101:5101"
command: bash -c "./upf-iptables.sh && ./upf -c ./config/upfcfg.yaml & python3 /packet_forwarder.py"
volumes:
- ./config/topology01/upfcfg-i-upf.yaml:/free5gc/config/upfcfg.yaml
- ./config/upf-iptables.sh:/free5gc/upf-iptables.sh
- ./config/scripts/packet_forwarder.py:/packet_forwarder.py
- ./config/scripts/delay.sh:/delay.sh
cap_add:
- NET_ADMIN
networks:
privnet:
ipv4_address: 10.100.200.101
aliases:
- i-upf.free5gc.org
free5gc-psa-upf-1:
container_name: psa-upf-1
build:
context: ./nf_upf
args:
DEBUG_TOOLS: "false"
command: bash -c "./upf-iptables.sh && ./upf -c ./config/upfcfg.yaml & python3 /packet_forwarder.py"
ports:
- "5201:5201"
volumes:
- ./config/topology01/upfcfg-psa-upf-1.yaml:/free5gc/config/upfcfg.yaml
- ./config/upf-iptables.sh:/free5gc/upf-iptables.sh
- ./config/scripts/packet_forwarder.py:/packet_forwarder.py
- ./config/scripts/delay.sh:/delay.sh
cap_add:
- NET_ADMIN
networks:
privnet:
ipv4_address: 10.100.200.201
aliases:
- psa-upf-1.free5gc.org
free5gc-psa-upf-2:
container_name: psa-upf-2
build:
context: ./nf_upf
args:
DEBUG_TOOLS: "false"
command: bash -c "./upf-iptables.sh && ./upf -c ./config/upfcfg.yaml & python3 /packet_forwarder.py"
ports:
- "5202:5202"
volumes:
- ./config/topology01/upfcfg-psa-upf-2.yaml:/free5gc/config/upfcfg.yaml
- ./config/upf-iptables.sh:/free5gc/upf-iptables.sh
- ./config/scripts/packet_forwarder.py:/packet_forwarder.py
- ./config/scripts/delay.sh:/delay.sh
cap_add:
- NET_ADMIN
networks:
privnet:
ipv4_address: 10.100.200.202
aliases:
- psa-upf-2.free5gc.org
db:
container_name: mongodb
image: mongo:3.6.8
command: mongod --port 27017 --quiet
expose:
- "27017"
volumes:
- dbdata:/data/db
networks:
privnet:
aliases:
- db
free5gc-nrf:
container_name: nrf
build:
context: ./nf_nrf
args:
DEBUG_TOOLS: "false"
command: ./nrf -c ./config/nrfcfg.yaml
expose:
- "8000"
volumes:
- ./config/nrfcfg.yaml:/free5gc/config/nrfcfg.yaml
- ./cert:/free5gc/cert
environment:
DB_URI: mongodb://db/free5gc
GIN_MODE: release
networks:
privnet:
aliases:
- nrf.free5gc.org
depends_on:
- db
free5gc-amf:
container_name: amf
build:
context: ./nf_amf
args:
DEBUG_TOOLS: "false"
command: ./amf -c ./config/amfcfg.yaml
expose:
- "8000"
volumes:
- ./config/amfcfg.yaml:/free5gc/config/amfcfg.yaml
- ./cert:/free5gc/cert
environment:
GIN_MODE: release
networks:
privnet:
aliases:
- amf.free5gc.org
depends_on:
- free5gc-nrf
free5gc-ausf:
container_name: ausf
build:
context: ./nf_ausf
args:
DEBUG_TOOLS: "false"
command: ./ausf -c ./config/ausfcfg.yaml
expose:
- "8000"
volumes:
- ./config/ausfcfg.yaml:/free5gc/config/ausfcfg.yaml
- ./cert:/free5gc/cert
environment:
GIN_MODE: release
networks:
privnet:
aliases:
- ausf.free5gc.org
depends_on:
- free5gc-nrf
free5gc-nssf:
container_name: nssf
build:
context: ./nf_nssf
args:
DEBUG_TOOLS: "false"
command: ./nssf -c ./config/nssfcfg.yaml
expose:
- "8000"
volumes:
- ./config/nssfcfg.yaml:/free5gc/config/nssfcfg.yaml
- ./cert:/free5gc/cert
environment:
GIN_MODE: release
networks:
privnet:
aliases:
- nssf.free5gc.org
depends_on:
- free5gc-nrf
free5gc-pcf:
container_name: pcf
build:
context: ./nf_pcf
args:
DEBUG_TOOLS: "false"
command: ./pcf -c ./config/pcfcfg.yaml
expose:
- "8000"
volumes:
- ./config/pcfcfg.yaml:/free5gc/config/pcfcfg.yaml
- ./cert:/free5gc/cert
environment:
GIN_MODE: release
networks:
privnet:
aliases:
- pcf.free5gc.org
depends_on:
- free5gc-nrf
free5gc-smf:
container_name: smf
build:
context: ./nf_smf
args:
DEBUG_TOOLS: "false"
command: ./smf -c ./config/smfcfg.yaml -u ./config/uerouting.yaml
expose:
- "8000"
volumes:
- ./config/topology01/smfcfg.yaml:/free5gc/config/smfcfg.yaml
- ./config/topology01/uerouting.yaml:/free5gc/config/uerouting.yaml
- ./cert:/free5gc/cert
environment:
GIN_MODE: release
networks:
privnet:
ipv4_address: 10.100.200.130
aliases:
- smf.free5gc.org
depends_on:
- free5gc-nrf
- free5gc-i-upf
- free5gc-psa-upf-1
- free5gc-psa-upf-2
free5gc-udm:
container_name: udm
build:
context: ./nf_udm
args:
DEBUG_TOOLS: "false"
command: ./udm -c ./config/udmcfg.yaml
expose:
- "8000"
volumes:
- ./config/udmcfg.yaml:/free5gc/config/udmcfg.yaml
- ./cert:/free5gc/cert
environment:
GIN_MODE: release
networks:
privnet:
aliases:
- udm.free5gc.org
depends_on:
- db
- free5gc-nrf
free5gc-udr:
container_name: udr
build:
context: ./nf_udr
args:
DEBUG_TOOLS: "false"
command: ./udr -c ./config/udrcfg.yaml
expose:
- "8000"
volumes:
- ./config/udrcfg.yaml:/free5gc/config/udrcfg.yaml
- ./cert:/free5gc/cert
environment:
DB_URI: mongodb://db/free5gc
GIN_MODE: release
networks:
privnet:
aliases:
- udr.free5gc.org
depends_on:
- db
- free5gc-nrf
free5gc-chf:
container_name: chf
build:
context: ./nf_chf
args:
DEBUG_TOOLS: "false"
command: ./chf -c ./config/chfcfg.yaml
expose:
- "8000"
volumes:
- ./config/chfcfg.yaml:/free5gc/config/chfcfg.yaml
- ./cert:/free5gc/cert
environment:
DB_URI: mongodb://db/free5gc
GIN_MODE: release
networks:
privnet:
aliases:
- chf.free5gc.org
depends_on:
- db
- free5gc-nrf
- free5gc-webui
free5gc-nef:
container_name: nef
build:
context: ./nf_nef
args:
DEBUG_TOOLS: "false"
command: ./nef -c ./config/nefcfg.yaml
expose:
- "8000"
volumes:
- ./config/nefcfg.yaml:/free5gc/config/nefcfg.yaml
- ./cert:/free5gc/cert
environment:
GIN_MODE: release
networks:
privnet:
aliases:
- nef.free5gc.org
depends_on:
- db
- free5gc-nrf
free5gc-webui:
container_name: webui
build:
context: ./webui
args:
DEBUG_TOOLS: "false"
command: ./webui -c ./config/webuicfg.yaml
expose:
- "2121"
volumes:
- ./config/webuicfg.yaml:/free5gc/config/webuicfg.yaml
- ./cert:/free5gc/cert
environment:
- GIN_MODE=release
networks:
privnet:
aliases:
- webui
ports:
- "5000:5000"
- "2122:2122"
- "2121:2121"
depends_on:
- db
- free5gc-nrf
ueransim-1:
container_name: ueransim-1
build:
context: ./ueransim
command: bash -c "./nr-gnb -c ./config/gnbcfg.yaml & python3 /packet_forwarder.py"
volumes:
- ./config/RAN/GNB/gnbcfg-1.yaml:/ueransim/config/gnbcfg.yaml
- ./config/RAN/UE/uecfg-ulcl-1.yaml:/ueransim/config/uecfg-1.yaml
- ./config/RAN/UE/uecfg-ulcl-2.yaml:/ueransim/config/uecfg-2.yaml
- ./config/scripts/packet_forwarder.py:/packet_forwarder.py
- ./config/scripts/delay.sh:/delay.sh
cap_add:
- NET_ADMIN
devices:
- "/dev/net/tun"
networks:
privnet:
ipv4_address: 10.100.200.51
aliases:
- gnb-1.free5gc.org
depends_on:
- free5gc-amf
- free5gc-i-upf
- free5gc-psa-upf-1
- free5gc-psa-upf-2
ueransim-2:
container_name: ueransim-2
build:
context: ./ueransim
command: bash -c "./nr-gnb -c ./config/gnbcfg.yaml & python3 /packet_forwarder.py"
volumes:
- ./config/RAN/GNB/gnbcfg-2.yaml:/ueransim/config/gnbcfg.yaml
- ./config/RAN/UE/uecfg-ulcl-3.yaml:/ueransim/config/uecfg-1.yaml
- ./config/RAN/UE/uecfg-ulcl-4.yaml:/ueransim/config/uecfg-2.yaml
- ./config/scripts/packet_forwarder.py:/packet_forwarder.py
- ./config/scripts/delay.sh:/delay.sh
cap_add:
- NET_ADMIN
devices:
- "/dev/net/tun"
networks:
privnet:
ipv4_address: 10.100.200.52
aliases:
- gnb-2.free5gc.org
depends_on:
- free5gc-amf
- free5gc-i-upf
- free5gc-psa-upf-1
- free5gc-psa-upf-2
ueransim-3:
container_name: ueransim-3
build:
context: ./ueransim
command: bash -c "./nr-gnb -c ./config/gnbcfg.yaml & python3 /packet_forwarder.py"
volumes:
- ./config/RAN/GNB/gnbcfg-3.yaml:/ueransim/config/gnbcfg.yaml
- ./config/RAN/UE/uecfg-ulcl-5.yaml:/ueransim/config/uecfg-1.yaml
- ./config/RAN/UE/uecfg-ulcl-6.yaml:/ueransim/config/uecfg-2.yaml
- ./config/scripts/packet_forwarder.py:/packet_forwarder.py
- ./config/scripts/delay.sh:/delay.sh
cap_add:
- NET_ADMIN
devices:
- "/dev/net/tun"
networks:
privnet:
ipv4_address: 10.100.200.53
aliases:
- gnb-3.free5gc.org
depends_on:
- free5gc-amf
- free5gc-i-upf
- free5gc-psa-upf-1
- free5gc-psa-upf-2
prometheus:
container_name: prometheus
image: prom/prometheus
ports:
- "9090:9090"
volumes:
- ./prometheus.yaml:/etc/prometheus/prometheus.yaml
command:
- '--config.file=/etc/prometheus/prometheus.yaml'
networks:
privnet:
ipv4_address: 10.100.200.240
aliases:
- prometheus.free5gc.org
depends_on:
- iperf3-exporter-5101
- iperf3-exporter-5201
grafana:
container_name: grafana
image: grafana/grafana
ports:
- "3000:3000"
volumes:
- grafana-storage:/var/lib/grafana
networks:
privnet:
ipv4_address: 10.100.200.241
aliases:
- grafana.free5gc.org
depends_on:
- prometheus
iperf3-exporter-5101:
container_name: iperf3-exporter-5101
image: ghcr.io/edgard/iperf3_exporter:latest
ports:
- "9579:9579"
environment:
- IPERF3_SERVER=free5gc-i-upf
- IPERF3_PORT=5101
- IPERF3_PROTOCOL=udp
- IPERF3_LENGTH=1
- IPERF3_BANDWIDTH=500M
- IPERF3_DURATION=15
- IPERF3_INTERVAL=60
networks:
privnet:
ipv4_address: 10.100.200.242
aliases:
- iperf3-exporter-5101.free5gc.org
iperf3-exporter-5201:
container_name: iperf3-exporter-5201
image: ghcr.io/edgard/iperf3_exporter:latest
ports:
- "9580:9579"
environment:
- IPERF3_SERVER=free5gc-psa-upf-1
- IPERF3_PORT=5201
- IPERF3_PROTOCOL=udp
- IPERF3_LENGTH=1
- IPERF3_BANDWIDTH=500M
- IPERF3_DURATION=15
- IPERF3_INTERVAL=60
networks:
privnet:
ipv4_address: 10.100.200.243
aliases:
- iperf3-exporter-5201.free5gc.org
networks:
privnet:
ipam:
driver: default
config:
- subnet: 10.100.200.0/24
driver_opts:
com.docker.network.bridge.name: br-free5gc
volumes:
dbdata:
grafana-storage: