Commit 6890f00b authored by yangjian's avatar yangjian

AMF+SMF+SPGW = openxg-5gc

parent 2159301c
version: '3.3' version: '3.3'
services: services:
openxg-amf: openxg-5gc:
image: openxg5gc/openxg-5gc:v1.5.0 image: openxg5gc/openxg-5gc:v1.5.0
container_name: amf container_name: openxg-5gc
restart: always restart: always
privileged: true
logging: logging:
driver: "json-file" driver: "json-file"
options: options:
...@@ -15,59 +16,14 @@ services: ...@@ -15,59 +16,14 @@ services:
# - "38412:38412/sctp" # - "38412:38412/sctp"
stdin_open: true stdin_open: true
tty: true tty: true
command: /opt/5gcs/amf/libs/ld-linux-x86-64.so.2 --library-path /opt/5gcs/amf/libs/ /opt/5gcs/amf/amf -c /opt/5gcs/amf/amf.conf -o command: /opt/5gcs/scripts/run_5gc.sh start
volumes: volumes:
- /etc/timezone:/etc/timezone - /etc/timezone:/etc/timezone
- /etc/localtime:/etc/localtime - /etc/localtime:/etc/localtime
- ../scripts/run_5gc.sh:/opt/5gcs/scripts/run_5gc.sh
- ../etc/amf.conf:/opt/5gcs/amf/amf.conf - ../etc/amf.conf:/opt/5gcs/amf/amf.conf
openxg-smf:
image: openxg5gc/openxg-5gc:v1.5.0
container_name: smf
restart: always
logging:
driver: "json-file"
options:
max-size: "100m"
networks:
openxg:
ipv4_address: 172.11.200.15
stdin_open: true
tty: true
command: /opt/5gcs/smf/libs/ld-linux-x86-64.so.2 --library-path /opt/5gcs/smf/libs/ /opt/5gcs/smf/smf -c /opt/5gcs/smf/smf.conf -o
volumes:
- /etc/timezone:/etc/timezone
- /etc/localtime:/etc/localtime
- ../etc/smf.conf:/opt/5gcs/smf/smf.conf
openxg-spgwu:
image: openxg5gc/openxg-5gc:v1.5.0
container_name: spgwu
depends_on:
- openxg-smf
restart: always
cap_add:
- NET_ADMIN
- SYS_ADMIN
cap_drop:
- ALL
privileged: true
logging:
driver: "json-file"
options:
max-size: "100m"
networks:
openxg:
ipv4_address: 172.11.200.25
stdin_open: true
tty: true
command: /opt/5gcs/spgw_u/libs/ld-linux-x86-64.so.2 --library-path /opt/5gcs/spgw_u/libs/ /opt/5gcs/spgw_u/spgwu -c /opt/5gcs/spgw_u/spgw_u.conf -o
volumes:
- /etc/timezone:/etc/timezone
- /etc/localtime:/etc/localtime
- ../etc/spgw_u.conf:/opt/5gcs/spgw_u/spgw_u.conf
networks: networks:
openxg: openxg:
name: docker-openxg name: docker-openxg
external: true external: true
...@@ -69,15 +69,14 @@ AMF = ...@@ -69,15 +69,14 @@ AMF =
# AMF binded interface for SBI (N11 (SMF)/N12 (AUSF), etc.) # AMF binded interface for SBI (N11 (SMF)/N12 (AUSF), etc.)
SBI: SBI:
{ {
INTERFACE_NAME = "eth0"; INTERFACE_NAME = "lo";
IPV4_ADDRESS = "read"; IPV4_ADDRESS = "127.0.0.5/24";
PORT = 8004; PORT = 8004;
API_VERSION = "v1"; API_VERSION = "v1";
HTTP2_PORT = 8404; HTTP2_PORT = 8404;
SMF_INSTANCES_POOL = ( SMF_INSTANCES_POOL = (
{SMF_INSTANCE_ID = 5; IPV4_ADDRESS = "172.11.200.15"; PORT = "8005"; HTTP2_PORT = 8405, VERSION = "v1"; FQDN = "smf", SELECTED = "true"}, {SMF_INSTANCE_ID = 5; IPV4_ADDRESS = "127.0.0.6"; PORT = "8005"; HTTP2_PORT = 8405, VERSION = "v1"; FQDN = "smf", SELECTED = "true"}
{SMF_INSTANCE_ID = 10; IPV4_ADDRESS = "192.168.199.253"; PORT = "8055"; HTTP2_PORT = 8455, VERSION = "v1"; FQDN = "smf", SELECTED = "false"}
); );
}; };
......
...@@ -30,15 +30,15 @@ SMF = ...@@ -30,15 +30,15 @@ SMF =
N4 : N4 :
{ {
# SMF binded interface for N4 communication (UPF) # SMF binded interface for N4 communication (UPF)
INTERFACE_NAME = "eth0"; # YOUR NETWORK CONFIG HERE INTERFACE_NAME = "lo"; # YOUR NETWORK CONFIG HERE
IPV4_ADDRESS = "read"; IPV4_ADDRESS = "127.0.0.100/24";
}; };
SBI : SBI :
{ {
# SMF binded interface for SBI interface (e.g., communication with AMF, UDM) # SMF binded interface for SBI interface (e.g., communication with AMF, UDM)
INTERFACE_NAME = "eth0"; # YOUR NETWORK CONFIG HERE INTERFACE_NAME = "lo"; # YOUR NETWORK CONFIG HERE
IPV4_ADDRESS = "read"; IPV4_ADDRESS = "127.0.0.6/24";
PORT = 8005; # YOUR NETWORK CONFIG HERE (default: 80) PORT = 8005; # YOUR NETWORK CONFIG HERE (default: 80)
HTTP2_PORT = 8405; # YOUR NETWORK CONFIG HERE HTTP2_PORT = 8405; # YOUR NETWORK CONFIG HERE
API_VERSION = "v1"; # YOUR SMF API VERSION CONFIG HERE API_VERSION = "v1"; # YOUR SMF API VERSION CONFIG HERE
...@@ -90,7 +90,7 @@ SMF = ...@@ -90,7 +90,7 @@ SMF =
AMF : AMF :
{ {
IPV4_ADDRESS = "172.11.200.14"; # YOUR AMF CONFIG HERE IPV4_ADDRESS = "127.0.0.5"; # YOUR AMF CONFIG HERE
PORT = 8004; # YOUR AMF CONFIG HERE (default: 80) PORT = 8004; # YOUR AMF CONFIG HERE (default: 80)
API_VERSION = "v1"; # YOUR AMF API VERSION FOR SBI CONFIG HERE API_VERSION = "v1"; # YOUR AMF API VERSION FOR SBI CONFIG HERE
# FQDN = "@AMF_FQDN@" # YOUR AMF FQDN CONFIG HERE # FQDN = "@AMF_FQDN@" # YOUR AMF FQDN CONFIG HERE
...@@ -121,7 +121,7 @@ SMF = ...@@ -121,7 +121,7 @@ SMF =
UPF_LIST = ( UPF_LIST = (
{ {
IPV4_ADDRESS = "127.0.0.1" ; IPV4_ADDRESS = "127.0.0.101" ;
# FQDN = "localhost"; # FQDN = "localhost";
# NWI_LIST = ({DOMAIN_ACCESS = "@DOMAIN_ACCESS@", DOMAIN_CORE = "@DOMAIN_CORE@"}) # NWI_LIST = ({DOMAIN_ACCESS = "@DOMAIN_ACCESS@", DOMAIN_CORE = "@DOMAIN_CORE@"})
} # YOUR UPF CONFIG HERE } # YOUR UPF CONFIG HERE
......
...@@ -71,8 +71,8 @@ SPGW-U = ...@@ -71,8 +71,8 @@ SPGW-U =
SX : SX :
{ {
# S/P-GW binded interface for SX communication # S/P-GW binded interface for SX communication
INTERFACE_NAME = "eth0"; # STRING, interface name INTERFACE_NAME = "lo"; # STRING, interface name
IPV4_ADDRESS = "read"; # STRING, CIDR or "read" to let app read interface configured IP address IPV4_ADDRESS = "127.0.0.101/24"; # STRING, CIDR or "read" to let app read interface configured IP address
#PORT = 8805; # Default is 8805 #PORT = 8805; # Default is 8805
SCHED_PARAMS : SCHED_PARAMS :
{ {
...@@ -109,7 +109,7 @@ SPGW-U = ...@@ -109,7 +109,7 @@ SPGW-U =
); );
SPGW-C_LIST = ( SPGW-C_LIST = (
{IPV4_ADDRESS="172.11.200.15" ;} {IPV4_ADDRESS="127.0.0.100" ;}
); );
NON_STANDART_FEATURES : NON_STANDART_FEATURES :
......
...@@ -77,8 +77,9 @@ docker-compose -f docker-compose-mysql.yml down -t 0 #关闭数据库 ...@@ -77,8 +77,9 @@ docker-compose -f docker-compose-mysql.yml down -t 0 #关闭数据库
```shell ```shell
cd openxg-5gcs-release/docker-compose cd openxg-5gcs-release/docker-compose
docker logs -f amf #查看amf日志 docker logs -f openxg-5gc #查看核心网状态日志
docker logs -f smf #查看smf日志 docker exec -it openxg-5gc tail -f /opt/5gcs/log/amf.log #查看amf日志
docker logs -f spgwu #查看spgwu日志 docker exec -it openxg-5gc tail -f /opt/5gcs/log/smf.log #查看smf日志
docker exec -it openxg-5gc tail -f /opt/5gcs/log/upf.log #查看spgwu日志
``` ```
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment