forked from free5gc/free5gc-compose
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
282 lines (268 loc) · 6.37 KB
/
docker-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
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
version: '3.8'
services:
my5gcore-upf1:
container_name: upf
build:
context: ./nf_upf
args:
DEBUG_TOOLS: "true"
command: bash -c "./router-upf.sh && ./free5gc-upfd -f ../config/upfcfg.yaml"
volumes:
- "${CONFIG}/upfcfg.yaml:/my5Gcore/config/upfcfg.yaml"
- "${CONFIG}/router-upf-lorawan.sh:/my5Gcore/free5gc-upfd/router-upf.sh"
cap_add:
- ALL
ports:
- "2152:2152/udp"
- "8805:8805/udp"
networks:
5gcorenetwork:
ipv4_address: 10.100.200.3
aliases:
- upf.my5Gcore.org
lorawan:
aliases:
- upf.lorawan.org
db:
container_name: mongodb
image: mongo
command: mongod --port 27017
expose:
- "27017"
ports:
- "27017:27017"
volumes:
- ./dbdata:/data/db
networks:
5gcorenetwork:
aliases:
- db
my5gcore-nrf:
container_name: nrf
build:
context: ./nf_nrf
args:
DEBUG_TOOLS: "false"
command: ./nrf -nrfcfg ../config/nrfcfg.conf
expose:
- "29510"
volumes:
- ${CONFIG}/nrfcfg.conf:/my5Gcore/config/nrfcfg.conf
- ${CONFIG}/my5Gcore.conf:/my5Gcore/config/free5GC.conf
environment:
DB_URI: ${DBURI}
GIN_MODE: release
networks:
5gcorenetwork:
aliases:
- nrf.my5Gcore.org
depends_on:
- db
my5gcore-amf:
container_name: amf
build:
context: ./nf_amf
args:
DEBUG_TOOLS: "false"
command: ./amf -amfcfg ../config/amfcfg.conf
expose:
- "29518"
volumes:
- ${CONFIG}/amfcfg.conf:/my5Gcore/config/amfcfg.conf
- ${CONFIG}/my5Gcore.conf:/my5Gcore/config/free5GC.conf
environment:
GIN_MODE: release
networks:
5gcorenetwork:
aliases:
- amf.my5Gcore.org
depends_on:
- my5gcore-nrf
my5gcore-ausf:
container_name: ausf
build:
context: ./nf_ausf
args:
DEBUG_TOOLS: "false"
command: ./ausf -ausfcfg ../config/ausfcfg.conf
expose:
- "29509"
volumes:
- ${CONFIG}/ausfcfg.conf:/my5Gcore/config/ausfcfg.conf
- ${CONFIG}/my5Gcore.conf:/my5Gcore/config/free5GC.conf
environment:
GIN_MODE: release
networks:
5gcorenetwork:
aliases:
- ausf.my5Gcore.org
depends_on:
- my5gcore-nrf
my5gcore-nssf:
container_name: nssf
build:
context: ./nf_nssf
args:
DEBUG_TOOLS: "false"
command: ./nssf -nssfcfg ../config/nssfcfg.conf
expose:
- "29531"
volumes:
- ${CONFIG}/nssfcfg.conf:/my5Gcore/config/nssfcfg.conf
- ${CONFIG}/my5Gcore.conf:/my5Gcore/config/free5GC.conf
environment:
GIN_MODE: release
networks:
5gcorenetwork:
aliases:
- nssf.my5Gcore.org
depends_on:
- my5gcore-nrf
my5gcore-pcf:
container_name: pcf
build:
context: ./nf_pcf
args:
DEBUG_TOOLS: "false"
command: ./pcf -pcfcfg ../config/pcfcfg.conf
expose:
- "29507"
volumes:
- ${CONFIG}/pcfcfg.conf:/my5Gcore/config/pcfcfg.conf
- ${CONFIG}/my5Gcore.conf:/my5Gcore/config/free5GC.conf
environment:
GIN_MODE: release
networks:
5gcorenetwork:
aliases:
- pcf.my5Gcore.org
depends_on:
- my5gcore-nrf
my5gcore-smf:
container_name: smf
build:
context: ./nf_smf
args:
DEBUG_TOOLS: "false"
command: ./smf -smfcfg ../config/smfcfg.conf -uerouting ../config/uerouting.yaml
expose:
- "29502"
- "8805/udp"
volumes:
- ${CONFIG}/smfcfg.conf:/my5Gcore/config/smfcfg.conf
- ${CONFIG}/uerouting.yaml:/my5Gcore/config/uerouting.yaml
- ${CONFIG}/my5Gcore.conf:/my5Gcore/config/free5GC.conf
environment:
GIN_MODE: release
networks:
5gcorenetwork:
aliases:
- smf.my5Gcore.org
depends_on:
- my5gcore-nrf
- my5gcore-amf
- my5gcore-upf1
my5gcore-udm:
container_name: udm
build:
context: ./nf_udm
args:
DEBUG_TOOLS: "false"
command: ./udm -udmcfg ../config/udmcfg.conf
expose:
- "29503"
volumes:
- ${CONFIG}/udmcfg.conf:/my5Gcore/config/udmcfg.conf
- ${CONFIG}/my5Gcore.conf:/my5Gcore/config/free5GC.conf
environment:
GIN_MODE: release
networks:
5gcorenetwork:
aliases:
- udm.my5Gcore.org
depends_on:
- db
- my5gcore-nrf
my5gcore-udr:
container_name: udr
build:
context: ./nf_udr
args:
DEBUG_TOOLS: "false"
command: ./udr -udrcfg ../config/udrcfg.conf
expose:
- "29504"
environment:
GIN_MODE: release
volumes:
- ${CONFIG}/udrcfg.conf:/my5Gcore/config/udrcfg.conf
- ${CONFIG}/my5Gcore.conf:/my5Gcore/config/free5GC.conf
environment:
DB_URI: ${DBURI}
GIN_MODE: release
networks:
5gcorenetwork:
aliases:
- udr.my5Gcore.org
depends_on:
- db
- my5gcore-nrf
my5gcore-n3iwf:
container_name: n3iwf
build:
context: ./nf_n3iwf
args:
DEBUG_TOOLS: "true"
command: sh -c "./n3iwf-ipsec.sh && ./n3iwf -n3iwfcfg ../config/n3iwfcfg.conf"
ports:
- "20000:20000"
- "500:500/udp"
- "4500:4500/udp"
volumes:
- ${CONFIG}/n3iwfcfg.conf:/my5Gcore/config/n3iwfcfg.conf
- ${CONFIG}/my5Gcore.conf:/my5Gcore/config/free5GC.conf
- ${CONFIG}/n3iwf-ipsec.sh:/my5Gcore/n3iwf/n3iwf-ipsec.sh
environment:
GIN_MODE: release
cap_add:
- NET_ADMIN
networks:
5gcorenetwork:
ipv4_address: 10.100.200.200
aliases:
- n3iwf.my5Gcore.org
depends_on:
- my5gcore-amf
my5gcore-webui:
container_name: webui
build:
context: ./webui
args:
DEBUG_TOOLS: "false"
command: ./webui -free5gccfg ../config/free5GC.conf --webuicfg ../config/webuicfg.conf
volumes:
- ${CONFIG}/webuicfg.conf:/my5Gcore/config/webuicfg.conf
- ${CONFIG}/my5Gcore.conf:/my5Gcore/config/free5GC.conf
environment:
- GIN_MODE=release
networks:
5gcorenetwork:
aliases:
- webui
ports:
- "5000:5000"
depends_on:
- db
networks:
5gcorenetwork:
ipam:
driver: default
config:
- subnet: 10.100.200.0/24
lorawan:
ipam:
driver: default
config:
- subnet: 10.200.200.0/24
volumes:
dbdata: