-
Notifications
You must be signed in to change notification settings - Fork 1
/
ben-edit.yaml
275 lines (258 loc) · 6.05 KB
/
ben-edit.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
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
version: '3.8'
services:
loxilb:
container_name: lb
image: ghcr.io/loxilb-io/loxilb:latestu22 #ghcr.io/loxilb-io/loxilb:v0.8.6
command: loxicmd create lb 20.20.20.1 --sctp=38412:38412 --endpoints=10.10.200.102:1,10.10.200.103:1 --mode=onearm
cap_add:
- SYS_ADMIN
privileged: true
networks:
network:
ipv4_address: 10.100.200.101
privnet:
aliases:
- lb.free5gc.org
free5gc-upf:
container_name: upf
image: free5gc/upf:v3.3.0
command: bash -c "./upf-iptables.sh && ./upf -c ./config/upfcfg.yaml"
volumes:
- ./config/upfcfg.yaml:/free5gc/config/upfcfg.yaml
- ./config/upf-iptables.sh:/free5gc/upf-iptables.sh
cap_add:
- NET_ADMIN
networks:
privnet:
aliases:
- upf.free5gc.org
db:
container_name: mongodb
image: mongo
command: mongod --port 27017
expose:
- "27017"
volumes:
- dbdata:/data/db
networks:
privnet:
aliases:
- db
free5gc-nrf:
container_name: nrf
image: free5gc/nrf:v3.3.0
command: ./nrf -c ./config/nrfcfg.yaml
expose:
- "8000"
volumes:
- ./config/nrfcfg.yaml:/free5gc/config/nrfcfg.yaml
environment:
DB_URI: mongodb://db/free5gc
GIN_MODE: release
networks:
privnet:
aliases:
- nrf.free5gc.org
depends_on:
- db
free5gc-amf:
container_name: amf
image: free5gc/amf:v3.3.0
command: ./amf -c ./config/amfcfg.yaml
expose:
- "8000"
volumes:
- ./config/amfcfg.yaml:/free5gc/config/amfcfg.yaml
environment:
GIN_MODE: release
networks:
network:
ipv4_address: 10.100.200.102
privnet:
aliases:
- amf.free5gc.org
depends_on:
- free5gc-nrf
# Add new service in compose file:
free5gc-amf2:
container_name: amf2
image: free5gc/amf:v3.3.0
command: ./amf -c ./config/amfcfg.yaml
expose:
- "8000"
volumes:
- ./config/amf2cfg.yaml:/free5gc/config/amfcfg.yaml
environment:
GIN_MODE: release
networks:
network:
ipv4_address: 10.100.200.103
privnet:
aliases:
- amf2.free5gc.org
depends_on:
- free5gc-nrf
free5gc-ausf:
container_name: ausf
image: free5gc/ausf:v3.3.0
command: ./ausf -c ./config/ausfcfg.yaml
expose:
- "8000"
volumes:
- ./config/ausfcfg.yaml:/free5gc/config/ausfcfg.yaml
environment:
GIN_MODE: release
networks:
privnet:
aliases:
- ausf.free5gc.org
depends_on:
- free5gc-nrf
free5gc-nssf:
container_name: nssf
image: free5gc/nssf:v3.3.0
command: ./nssf -c ./config/nssfcfg.yaml
expose:
- "8000"
volumes:
- ./config/nssfcfg.yaml:/free5gc/config/nssfcfg.yaml
environment:
GIN_MODE: release
networks:
privnet:
aliases:
- nssf.free5gc.org
depends_on:
- free5gc-nrf
free5gc-pcf:
container_name: pcf
image: free5gc/pcf:v3.3.0
command: ./pcf -c ./config/pcfcfg.yaml
expose:
- "8000"
volumes:
- ./config/pcfcfg.yaml:/free5gc/config/pcfcfg.yaml
environment:
GIN_MODE: release
networks:
privnet:
aliases:
- pcf.free5gc.org
depends_on:
- free5gc-nrf
free5gc-smf:
container_name: smf
image: free5gc/smf:v3.3.0
command: ./smf -c ./config/smfcfg.yaml -u ./config/uerouting.yaml
expose:
- "8000"
volumes:
- ./config/smfcfg.yaml:/free5gc/config/smfcfg.yaml
- ./config/uerouting.yaml:/free5gc/config/uerouting.yaml
environment:
GIN_MODE: release
networks:
privnet:
aliases:
- smf.free5gc.org
depends_on:
- free5gc-nrf
- free5gc-upf
free5gc-udm:
container_name: udm
image: free5gc/udm:v3.3.0
command: ./udm -c ./config/udmcfg.yaml
expose:
- "8000"
volumes:
- ./config/udmcfg.yaml:/free5gc/config/udmcfg.yaml
environment:
GIN_MODE: release
networks:
privnet:
aliases:
- udm.free5gc.org
depends_on:
- db
- free5gc-nrf
free5gc-udr:
container_name: udr
image: free5gc/udr:v3.3.0
command: ./udr -c ./config/udrcfg.yaml
expose:
- "8000"
volumes:
- ./config/udrcfg.yaml:/free5gc/config/udrcfg.yaml
environment:
DB_URI: mongodb://db/free5gc
GIN_MODE: release
networks:
privnet:
aliases:
- udr.free5gc.org
depends_on:
- db
- free5gc-nrf
free5gc-n3iwf:
container_name: n3iwf
image: free5gc/n3iwf:v3.3.0
command: sh -c "./n3iwf-ipsec.sh && ./n3iwf -c ./config/n3iwfcfg.yaml"
volumes:
- ./config/n3iwfcfg.yaml:/free5gc/config/n3iwfcfg.yaml
- ./config/n3iwf-ipsec.sh:/free5gc/n3iwf-ipsec.sh
environment:
GIN_MODE: release
cap_add:
- NET_ADMIN
networks:
privnet:
aliases:
- n3iwf.free5gc.org
depends_on:
- free5gc-amf
- free5gc-smf
- free5gc-upf
free5gc-webui:
container_name: webui
image: free5gc/webui:v3.3.0
command: ./webui -c ./config/webuicfg.yaml
volumes:
- ./config/webuicfg.yaml:/free5gc/config/webuicfg.yaml
environment:
- GIN_MODE=release
networks:
privnet:
aliases:
- webui
ports:
- "5000:5000"
depends_on:
- db
ueransim:
container_name: ueransim
image: free5gc/ueransim:latest
command: bash -c "ip route add 20.20.20.1/32 dev eth0 via 10.100.200.101 && ./nr-gnb -c ./config/gnbcfg.yaml"
volumes:
- ./config/gnbcfg.yaml:/ueransim/config/gnbcfg.yaml
- ./config/uecfg.yaml:/ueransim/config/uecfg.yaml
cap_add:
- NET_ADMIN
devices:
- "/dev/net/tun"
networks:
privnet:
aliases:
- gnb.free5gc.org
depends_on:
- free5gc-amf
- free5gc-upf
networks:
privnet:
ipam:
driver: default
config:
- subnet: 10.100.200.0/24
driver_opts:
com.docker.network.bridge.name: br-free5gc
volumes:
dbdata: