-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
238 lines (224 loc) · 4.71 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
version: '2'
services:
free5gc-upf-1:
container_name: upf1
build:
context: .
dockerfile: dockerfile/upf
command: ./free5gc-upfd -f /config/upfcfg1.yaml
privileged: true
volumes:
- "./config:/config"
cap_add:
- NET_ADMIN
devices:
- "/dev/net/tun:/dev/net/tun"
networks:
privnet:
ipv4_address: 10.200.200.101
free5gc-upf-2:
container_name: upf2
build:
context: .
dockerfile: dockerfile/upf
command: ./free5gc-upfd -f /config/upfcfg2.yaml
privileged: true
volumes:
- "./config:/config"
cap_add:
- NET_ADMIN
devices:
- "/dev/net/tun:/dev/net/tun"
networks:
privnet:
ipv4_address: 10.200.200.103
free5gc-upf-b:
container_name: upfb
build:
context: .
dockerfile: dockerfile/upf
command: ./free5gc-upfd -f /config/upfcfgb.yaml
privileged: true
volumes:
- "./config:/config"
cap_add:
- NET_ADMIN
devices:
- "/dev/net/tun:/dev/net/tun"
networks:
privnet:
ipv4_address: 10.200.200.102
db:
container_name: mongodb
image: mongo
command: mongod --port 27017
expose:
- "27017"
volumes:
- ./mongodb:/data/db
networks:
privnet:
ipv4_address: 10.200.200.1
free5gc-nrf:
container_name: nrf
build:
context: .
dockerfile: Dockerfile
command: ./nrf -nrfcfg /config/nrfcfg.conf
expose:
- "29510"
volumes:
- "./config:/config"
environment:
DB_URI: mongodb://db/free5gc
networks:
privnet:
ipv4_address: 10.200.200.2
depends_on:
- db
free5gc-amf:
container_name: amf
build:
context: .
dockerfile: Dockerfile
command: ./amf -amfcfg /config/amfcfg.conf
expose:
- "29518"
volumes:
- "./config:/config"
networks:
privnet:
ipv4_address: 10.200.200.3
depends_on:
- free5gc-nrf
free5gc-ausf:
container_name: ausf
build:
context: .
dockerfile: Dockerfile
command: ./ausf -ausfcfg /config/ausfcfg.conf
expose:
- "29509"
volumes:
- "./config:/config"
networks:
privnet:
ipv4_address: 10.200.200.4
depends_on:
- free5gc-nrf
free5gc-nssf:
container_name: nssf
build:
context: .
dockerfile: Dockerfile
command: ./nssf -nssfcfg /config/nssfcfg.conf
expose:
- "29531"
volumes:
- "./config:/config"
networks:
privnet:
ipv4_address: 10.200.200.5
depends_on:
- free5gc-nrf
free5gc-pcf:
container_name: pcf
build:
context: .
dockerfile: Dockerfile
command: ./pcf -pcfcfg /config/pcfcfg.conf
expose:
- "29507"
volumes:
- "./config:/config"
networks:
privnet:
ipv4_address: 10.200.200.6
depends_on:
- free5gc-nrf
free5gc-smf:
container_name: smf
build:
context: .
dockerfile: Dockerfile
command: ./smf -smfcfg /config/smfcfg.conf -uerouting /config/uerouting.yaml
expose:
- "29502"
volumes:
- "./config:/config"
networks:
privnet:
ipv4_address: 10.200.200.7
depends_on:
- free5gc-nrf
- free5gc-upf-1
- free5gc-upf-2
- free5gc-upf-b
free5gc-udm:
container_name: udm
build:
context: .
dockerfile: Dockerfile
command: ./udm -udmcfg /config/udmcfg.conf
expose:
- "29503"
volumes:
- "./config:/config"
networks:
privnet:
ipv4_address: 10.200.200.8
depends_on:
- db
- free5gc-nrf
free5gc-udr:
container_name: udr
build:
context: .
dockerfile: Dockerfile
command: ./udr -udrcfg /config/udrcfg.conf
expose:
- "29504"
volumes:
- "./config:/config"
environment:
DB_URI: mongodb://db/free5gc
networks:
privnet:
ipv4_address: 10.200.200.9
depends_on:
- db
- free5gc-nrf
free5gc-n3iwf:
container_name: n3iwf
build:
context: .
dockerfile: Dockerfile
command: |
/bin/bash -c "
ip l add name ipsec0 type vti local 10.200.200.10 remote 0.0.0.0 key 5
ip a add 10.0.0.1/24 dev ipsec0
ip l set dev ipsec0 up
./n3iwf -n3iwfcfg /config/n3iwfcfg.conf
sleep 100000
"
privileged: true
#cap_add:
# - NET_ADMIN
#devices:
# - "/dev/net/tun:/dev/net/tun"
expose:
- "29504"
volumes:
- "./config:/config"
networks:
privnet:
ipv4_address: 10.200.200.10
depends_on:
- free5gc-amf
networks:
privnet:
driver: bridge
ipam:
config:
- subnet: 10.200.200.0/24
gateway: 10.200.200.254