Commit 6890f00b authored by yangjian's avatar yangjian

AMF+SMF+SPGW = openxg-5gc

parent 2159301c
version: '3.3'
services:
openxg-amf:
openxg-5gc:
image: openxg5gc/openxg-5gc:v1.5.0
container_name: amf
container_name: openxg-5gc
restart: always
privileged: true
logging:
driver: "json-file"
options:
......@@ -15,59 +16,14 @@ services:
# - "38412:38412/sctp"
stdin_open: 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:
- /etc/timezone:/etc/timezone
- /etc/localtime:/etc/localtime
- ../scripts/run_5gc.sh:/opt/5gcs/scripts/run_5gc.sh
- ../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:
openxg:
name: docker-openxg
external: true
name: docker-openxg
external: true
......@@ -69,15 +69,14 @@ AMF =
# AMF binded interface for SBI (N11 (SMF)/N12 (AUSF), etc.)
SBI:
{
INTERFACE_NAME = "eth0";
IPV4_ADDRESS = "read";
INTERFACE_NAME = "lo";
IPV4_ADDRESS = "127.0.0.5/24";
PORT = 8004;
API_VERSION = "v1";
HTTP2_PORT = 8404;
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 = 10; IPV4_ADDRESS = "192.168.199.253"; PORT = "8055"; HTTP2_PORT = 8455, VERSION = "v1"; FQDN = "smf", SELECTED = "false"}
{SMF_INSTANCE_ID = 5; IPV4_ADDRESS = "127.0.0.6"; PORT = "8005"; HTTP2_PORT = 8405, VERSION = "v1"; FQDN = "smf", SELECTED = "true"}
);
};
......
......@@ -30,15 +30,15 @@ SMF =
N4 :
{
# SMF binded interface for N4 communication (UPF)
INTERFACE_NAME = "eth0"; # YOUR NETWORK CONFIG HERE
IPV4_ADDRESS = "read";
INTERFACE_NAME = "lo"; # YOUR NETWORK CONFIG HERE
IPV4_ADDRESS = "127.0.0.100/24";
};
SBI :
{
# SMF binded interface for SBI interface (e.g., communication with AMF, UDM)
INTERFACE_NAME = "eth0"; # YOUR NETWORK CONFIG HERE
IPV4_ADDRESS = "read";
INTERFACE_NAME = "lo"; # YOUR NETWORK CONFIG HERE
IPV4_ADDRESS = "127.0.0.6/24";
PORT = 8005; # YOUR NETWORK CONFIG HERE (default: 80)
HTTP2_PORT = 8405; # YOUR NETWORK CONFIG HERE
API_VERSION = "v1"; # YOUR SMF API VERSION CONFIG HERE
......@@ -90,7 +90,7 @@ SMF =
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)
API_VERSION = "v1"; # YOUR AMF API VERSION FOR SBI CONFIG HERE
# FQDN = "@AMF_FQDN@" # YOUR AMF FQDN CONFIG HERE
......@@ -121,7 +121,7 @@ SMF =
UPF_LIST = (
{
IPV4_ADDRESS = "127.0.0.1" ;
IPV4_ADDRESS = "127.0.0.101" ;
# FQDN = "localhost";
# NWI_LIST = ({DOMAIN_ACCESS = "@DOMAIN_ACCESS@", DOMAIN_CORE = "@DOMAIN_CORE@"})
} # YOUR UPF CONFIG HERE
......
......@@ -71,8 +71,8 @@ SPGW-U =
SX :
{
# S/P-GW binded interface for SX communication
INTERFACE_NAME = "eth0"; # STRING, interface name
IPV4_ADDRESS = "read"; # STRING, CIDR or "read" to let app read interface configured IP address
INTERFACE_NAME = "lo"; # STRING, interface name
IPV4_ADDRESS = "127.0.0.101/24"; # STRING, CIDR or "read" to let app read interface configured IP address
#PORT = 8805; # Default is 8805
SCHED_PARAMS :
{
......@@ -109,7 +109,7 @@ SPGW-U =
);
SPGW-C_LIST = (
{IPV4_ADDRESS="172.11.200.15" ;}
{IPV4_ADDRESS="127.0.0.100" ;}
);
NON_STANDART_FEATURES :
......
......@@ -77,8 +77,9 @@ docker-compose -f docker-compose-mysql.yml down -t 0 #关闭数据库
```shell
cd openxg-5gcs-release/docker-compose
docker logs -f amf #查看amf日志
docker logs -f smf #查看smf日志
docker logs -f spgwu #查看spgwu日志
docker logs -f openxg-5gc #查看核心网状态日志
docker exec -it openxg-5gc tail -f /opt/5gcs/log/amf.log #查看amf日志
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