Skip to content

Commit b2540ec

Browse files
committed
SCP model D deployment example:
- compose-files/scp-model-d/ - configs/scp-model-d/
1 parent 25c59a5 commit b2540ec

File tree

12 files changed

+519
-0
lines changed

12 files changed

+519
-0
lines changed
Lines changed: 254 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,254 @@
1+
version: "2.4"
2+
3+
services:
4+
db:
5+
container_name: db
6+
image: "mongo:${MONGODB_VERSION}"
7+
command: "mongod --bind_ip 0.0.0.0 --port 27017"
8+
networks:
9+
open5gs:
10+
aliases:
11+
- db.open5gs.org
12+
volumes:
13+
- db_data:/data/db
14+
- db_config:/data/configdb
15+
ports:
16+
- "0.0.0.0:27017:27017/tcp"
17+
18+
nrf:
19+
container_name: nrf
20+
image: "nrf:${OPEN5GS_VERSION}"
21+
build:
22+
context: ../../images/nrf
23+
args:
24+
- OPEN5GS_VERSION=${OPEN5GS_VERSION}
25+
- UBUNTU_VERSION=${UBUNTU_VERSION}
26+
command: "-c /open5gs/config/nrf.yaml"
27+
networks:
28+
open5gs:
29+
aliases:
30+
- nrf.open5gs.org
31+
volumes:
32+
- ../../configs/scp-model-d/nrf.yaml:/open5gs/config/nrf.yaml
33+
depends_on:
34+
- scp
35+
36+
scp:
37+
container_name: scp
38+
image: "scp:${OPEN5GS_VERSION}"
39+
build:
40+
context: ../../images/scp
41+
args:
42+
- OPEN5GS_VERSION=${OPEN5GS_VERSION}
43+
- UBUNTU_VERSION=${UBUNTU_VERSION}
44+
command: "-c /open5gs/config/scp.yaml"
45+
networks:
46+
open5gs:
47+
aliases:
48+
- scp.open5gs.org
49+
volumes:
50+
- ../../configs/scp-model-d/scp.yaml:/open5gs/config/scp.yaml
51+
52+
ausf:
53+
container_name: ausf
54+
image: "ausf:${OPEN5GS_VERSION}"
55+
build:
56+
context: ../../images/ausf
57+
args:
58+
- OPEN5GS_VERSION=${OPEN5GS_VERSION}
59+
- UBUNTU_VERSION=${UBUNTU_VERSION}
60+
command: "-c /open5gs/config/ausf.yaml"
61+
networks:
62+
open5gs:
63+
aliases:
64+
- ausf.open5gs.org
65+
volumes:
66+
- ../../configs/scp-model-d/ausf.yaml:/open5gs/config/ausf.yaml
67+
depends_on:
68+
- nrf
69+
- scp
70+
71+
udm:
72+
container_name: udm
73+
image: "udm:${OPEN5GS_VERSION}"
74+
build:
75+
context: ../../images/udm
76+
args:
77+
- OPEN5GS_VERSION=${OPEN5GS_VERSION}
78+
- UBUNTU_VERSION=${UBUNTU_VERSION}
79+
command: "-c /open5gs/config/udm.yaml"
80+
networks:
81+
open5gs:
82+
aliases:
83+
- udm.open5gs.org
84+
volumes:
85+
- ../../configs/scp-model-d/udm.yaml:/open5gs/config/udm.yaml
86+
depends_on:
87+
- nrf
88+
- scp
89+
90+
udr:
91+
container_name: udr
92+
image: "udr:${OPEN5GS_VERSION}"
93+
build:
94+
context: ../../images/udr
95+
args:
96+
- OPEN5GS_VERSION=${OPEN5GS_VERSION}
97+
- UBUNTU_VERSION=${UBUNTU_VERSION}
98+
command: "-c /open5gs/config/udr.yaml"
99+
networks:
100+
open5gs:
101+
aliases:
102+
- udr.open5gs.org
103+
volumes:
104+
- ../../configs/scp-model-d/udr.yaml:/open5gs/config/udr.yaml
105+
depends_on:
106+
- db
107+
- nrf
108+
- scp
109+
110+
nssf:
111+
container_name: nssf
112+
image: "nssf:${OPEN5GS_VERSION}"
113+
build:
114+
context: ../../images/nssf
115+
args:
116+
- OPEN5GS_VERSION=${OPEN5GS_VERSION}
117+
- UBUNTU_VERSION=${UBUNTU_VERSION}
118+
command: "-c /open5gs/config/nssf.yaml"
119+
networks:
120+
open5gs:
121+
aliases:
122+
- nssf.open5gs.org
123+
volumes:
124+
- ../../configs/scp-model-d/nssf.yaml:/open5gs/config/nssf.yaml
125+
depends_on:
126+
- nrf
127+
- scp
128+
129+
bsf:
130+
container_name: bsf
131+
image: "bsf:${OPEN5GS_VERSION}"
132+
build:
133+
context: ../../images/bsf
134+
args:
135+
- OPEN5GS_VERSION=${OPEN5GS_VERSION}
136+
- UBUNTU_VERSION=${UBUNTU_VERSION}
137+
command: "-c /open5gs/config/bsf.yaml"
138+
networks:
139+
open5gs:
140+
aliases:
141+
- bsf.open5gs.org
142+
volumes:
143+
- ../../configs/scp-model-d/bsf.yaml:/open5gs/config/bsf.yaml
144+
depends_on:
145+
- nrf
146+
- scp
147+
148+
pcf:
149+
container_name: pcf
150+
image: "pcf:${OPEN5GS_VERSION}"
151+
build:
152+
context: ../../images/pcf
153+
args:
154+
- OPEN5GS_VERSION=${OPEN5GS_VERSION}
155+
- UBUNTU_VERSION=${UBUNTU_VERSION}
156+
command: "-c /open5gs/config/pcf.yaml"
157+
networks:
158+
open5gs:
159+
aliases:
160+
- pcf.open5gs.org
161+
volumes:
162+
- ../../configs/scp-model-d/pcf.yaml:/open5gs/config/pcf.yaml
163+
depends_on:
164+
- db
165+
- nrf
166+
- scp
167+
168+
amf:
169+
container_name: amf
170+
image: "amf:${OPEN5GS_VERSION}"
171+
build:
172+
context: ../../images/amf
173+
args:
174+
- OPEN5GS_VERSION=${OPEN5GS_VERSION}
175+
- UBUNTU_VERSION=${UBUNTU_VERSION}
176+
command: "-c /open5gs/config/amf.yaml"
177+
networks:
178+
open5gs:
179+
aliases:
180+
- amf.open5gs.org
181+
volumes:
182+
- ../../configs/scp-model-d/amf.yaml:/open5gs/config/amf.yaml
183+
depends_on:
184+
- nrf
185+
- scp
186+
ports:
187+
- "0.0.0.0:38412:38412/sctp"
188+
189+
smf:
190+
container_name: smf
191+
image: "smf:${OPEN5GS_VERSION}"
192+
build:
193+
context: ../../images/smf
194+
args:
195+
- OPEN5GS_VERSION=${OPEN5GS_VERSION}
196+
- UBUNTU_VERSION=${UBUNTU_VERSION}
197+
command: "-c /open5gs/config/smf.yaml"
198+
networks:
199+
open5gs:
200+
aliases:
201+
- smf.open5gs.org
202+
volumes:
203+
- ../../configs/scp-model-d/smf.yaml:/open5gs/config/smf.yaml
204+
depends_on:
205+
- nrf
206+
- scp
207+
- upf
208+
209+
upf:
210+
container_name: upf
211+
image: "upf:${OPEN5GS_VERSION}"
212+
build:
213+
context: ../../images/upf
214+
args:
215+
- OPEN5GS_VERSION=${OPEN5GS_VERSION}
216+
- UBUNTU_VERSION=${UBUNTU_VERSION}
217+
command: "-c /open5gs/config/upf.yaml"
218+
networks:
219+
open5gs:
220+
aliases:
221+
- upf.open5gs.org
222+
extra_hosts:
223+
docker-host.external-ip: ${DOCKER_HOST_IP}
224+
volumes:
225+
- ../../configs/scp-model-d/upf.yaml:/open5gs/config/upf.yaml
226+
ports:
227+
- "0.0.0.0:2152:2152/udp"
228+
devices:
229+
- /dev/net/tun
230+
cap_add:
231+
- NET_ADMIN
232+
sysctls:
233+
- net.ipv4.ip_forward=1
234+
235+
networks:
236+
open5gs:
237+
name: open5gs
238+
driver: bridge
239+
driver_opts:
240+
com.docker.network.bridge.name: br-ogs
241+
ipam:
242+
config:
243+
- subnet: 10.33.33.0/24
244+
gateway: 10.33.33.1
245+
246+
volumes:
247+
db_data:
248+
name: open5gs_db_data
249+
labels:
250+
org.open5gs.mongodb_version: ${MONGODB_VERSION}
251+
db_config:
252+
name: open5gs_db_config
253+
labels:
254+
org.open5gs.mongodb_version: ${MONGODB_VERSION}

configs/scp-model-d/amf.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
logger:
2+
file: /open5gs/install/var/log/open5gs/amf.log
3+
4+
amf:
5+
sbi:
6+
- name: amf.open5gs.org
7+
port: 80
8+
ngap:
9+
- name: amf.open5gs.org
10+
metrics:
11+
name: amf.open5gs.org
12+
port: 9090
13+
guami:
14+
- plmn_id:
15+
mcc: 001
16+
mnc: 01
17+
amf_id:
18+
region: 2
19+
set: 1
20+
tai:
21+
- plmn_id:
22+
mcc: 001
23+
mnc: 01
24+
tac: 1
25+
plmn_support:
26+
- plmn_id:
27+
mcc: 001
28+
mnc: 01
29+
s_nssai:
30+
- sst: 1
31+
security:
32+
integrity_order : [ NIA2, NIA1, NIA0 ]
33+
ciphering_order : [ NEA0, NEA1, NEA2 ]
34+
network_name:
35+
full: Open5GS
36+
amf_name: open5gs-amf0
37+
38+
scp:
39+
sbi:
40+
- name: scp.open5gs.org
41+
port: 80
42+
43+
parameter:
44+
45+
max:
46+
47+
usrsctp:
48+
49+
time:

configs/scp-model-d/ausf.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
logger:
2+
file: /open5gs/install/var/log/open5gs/ausf.log
3+
4+
ausf:
5+
sbi:
6+
- name: ausf.open5gs.org
7+
port: 80
8+
9+
scp:
10+
sbi:
11+
- name: scp.open5gs.org
12+
port: 80
13+
14+
parameter:
15+
16+
max:
17+
18+
time:

configs/scp-model-d/bsf.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
db_uri: mongodb://db.open5gs.org/open5gs
2+
3+
logger:
4+
file: /open5gs/install/var/log/open5gs/bsf.log
5+
6+
bsf:
7+
sbi:
8+
- name: bsf.open5gs.org
9+
port: 80
10+
11+
scp:
12+
sbi:
13+
- name: scp.open5gs.org
14+
port: 80
15+
16+
parameter:
17+
18+
max:
19+
20+
time:

configs/scp-model-d/nrf.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
logger:
2+
file: /open5gs/install/var/log/open5gs/nrf.log
3+
4+
nrf:
5+
sbi:
6+
- name: nrf.open5gs.org
7+
port: 80
8+
9+
scp:
10+
sbi:
11+
- name: scp.open5gs.org
12+
port: 80
13+
14+
parameter:
15+
16+
max:
17+
18+
time:

configs/scp-model-d/nssf.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
logger:
2+
file: /open5gs/install/var/log/open5gs/nssf.log
3+
4+
nssf:
5+
sbi:
6+
- name: nssf.open5gs.org
7+
port: 80
8+
nsi:
9+
- name: nrf.open5gs.org
10+
port: 80
11+
s_nssai:
12+
sst: 1
13+
14+
scp:
15+
sbi:
16+
- name: scp.open5gs.org
17+
port: 80
18+
19+
parameter:
20+
21+
max:
22+
23+
time:

0 commit comments

Comments
 (0)