422 lines
14 KiB
YAML
422 lines
14 KiB
YAML
services:
|
|
mysql:
|
|
container_name: "mysql"
|
|
image: mysql:8.0
|
|
volumes:
|
|
- ./conf/oai_db.sql:/docker-entrypoint-initdb.d/oai_db.sql
|
|
- ./conf/mysql-healthcheck.sh:/tmp/mysql-healthcheck.sh
|
|
- ./conf/sql.cnf:/etc/mysql/conf.d/custom.cnf
|
|
environment:
|
|
- TZ=Asia/Tokyo
|
|
- MYSQL_DATABASE=oai_db
|
|
- MYSQL_USER=test
|
|
- MYSQL_PASSWORD=test
|
|
- MYSQL_ROOT_PASSWORD=linux
|
|
healthcheck:
|
|
test: /bin/bash -c "/tmp/mysql-healthcheck.sh"
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 30
|
|
networks:
|
|
public_net:
|
|
ipv4_address: 192.168.71.131
|
|
|
|
oai-amf:
|
|
container_name: "oai-amf"
|
|
image: oaisoftwarealliance/oai-amf:v2.1.9
|
|
environment:
|
|
- TZ=Asia/Tokyo
|
|
volumes:
|
|
- ./conf/mini_nonrf_config.yaml:/openair-amf/etc/config.yaml
|
|
depends_on:
|
|
- mysql
|
|
networks:
|
|
public_net:
|
|
ipv4_address: 192.168.71.132
|
|
|
|
oai-smf:
|
|
container_name: "oai-smf"
|
|
image: oaisoftwarealliance/oai-smf:v2.1.9
|
|
environment:
|
|
- TZ=Asia/Tokyo
|
|
volumes:
|
|
- ./conf/mini_nonrf_config.yaml:/openair-smf/etc/config.yaml
|
|
depends_on:
|
|
- oai-amf
|
|
networks:
|
|
public_net:
|
|
ipv4_address: 192.168.71.133
|
|
|
|
oai-upf:
|
|
container_name: "oai-upf"
|
|
image: oaisoftwarealliance/oai-upf:v2.1.9
|
|
environment:
|
|
- TZ=Asia/Tokyo
|
|
volumes:
|
|
- ./conf/mini_nonrf_config.yaml:/openair-upf/etc/config.yaml
|
|
depends_on:
|
|
- oai-smf
|
|
cap_add:
|
|
- NET_ADMIN
|
|
- SYS_ADMIN
|
|
cap_drop:
|
|
- ALL
|
|
privileged: true
|
|
networks:
|
|
public_net:
|
|
ipv4_address: 192.168.71.134
|
|
traffic_net:
|
|
ipv4_address: 192.168.72.134
|
|
|
|
oai-ext-dn:
|
|
privileged: true
|
|
container_name: oai-ext-dn
|
|
image: oaisoftwarealliance/trf-gen-cn5g:focal
|
|
entrypoint: /bin/bash -c \
|
|
"iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE;"\
|
|
"ip route add 12.1.1.0/24 via 192.168.72.134 dev eth0; sleep infinity"
|
|
depends_on:
|
|
- oai-upf
|
|
networks:
|
|
traffic_net:
|
|
ipv4_address: 192.168.72.135
|
|
healthcheck:
|
|
test: /bin/bash -c "ping -c 2 192.168.72.134"
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
oai-gnb:
|
|
image: nakaolab:oct1
|
|
container_name: oai-gnb
|
|
cap_drop:
|
|
- ALL
|
|
depends_on:
|
|
- oai-ext-dn
|
|
command: ["-c", "/oai-ran/cmake_targets/ran_build/build/nr-softmodem -O /opt/oai-gnb/etc/gnb.yaml -E --rfsim --log_config.global_log_options level,nocolor,time"]
|
|
networks:
|
|
public_net:
|
|
ipv4_address: 192.168.71.140
|
|
volumes:
|
|
- ../../conf_files/gnb.sa.band78.106prb.rfsim.yaml:/opt/oai-gnb/etc/gnb.yaml
|
|
healthcheck:
|
|
test: /bin/bash -c "pgrep nr-softmodem"
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
oai-flexric:
|
|
image: nakaolab:oct1
|
|
container_name: oai-flexric
|
|
command: ["-c", "stdbuf -o0 /oai-ran/openair2/E2AP/flexric/build/examples/ric/nearRT-RIC"]
|
|
networks:
|
|
public_net:
|
|
ipv4_address: 192.168.71.21
|
|
volumes:
|
|
- ./conf/flexric.conf:/oai-ran/openair2/E2AP/flexric/flexric.conf
|
|
- ./conf/flexric.conf:/usr/local/etc/flexric/flexric.conf
|
|
healthcheck:
|
|
test: /bin/bash -c "pgrep nearRT-RIC"
|
|
interval: 10s
|
|
timeout: 5s
|
|
|
|
xapp-chatgpt:
|
|
image: nakaolab:oct1
|
|
command: ["-c", "XAPP_DURATION=20 stdbuf -oL /oai-ran/openair2/E2AP/flexric/build/examples/xApp/c/monitor/xapp_chatgpt"]
|
|
container_name: xapp-chatgpt
|
|
environment:
|
|
- TZ=Asia/Tokyo
|
|
depends_on:
|
|
- oai-flexric
|
|
- oai-gnb
|
|
networks:
|
|
public_net:
|
|
ipv4_address: 192.168.71.26
|
|
healthcheck:
|
|
test: /bin/bash -c "pgrep -f xapp_chatgpt"
|
|
interval: 10s
|
|
timeout: 5s
|
|
|
|
oai-nr-ue1:
|
|
image: nakaolab:oct1
|
|
command: ["-c", "stdbuf -oL /oai-ran/cmake_targets/ran_build/build/nr-uesoftmodem -E --rfsim -r 106 --numerology 1 --uicc0.imsi 208990100001100 -C 3319680000 --rfsimulator.serveraddr 192.168.71.140 --log_config.global_log_options level,nocolor,time"]
|
|
container_name: oai-nr-ue1
|
|
cap_drop:
|
|
- ALL
|
|
cap_add:
|
|
- NET_ADMIN # for interface bringup
|
|
- NET_RAW # for ping
|
|
# environment:
|
|
# USE_ADDITIONAL_OPTIONS: -E --rfsim -r 106 --numerology 1 --uicc0.imsi 208990100001100 -C 3319680000 --rfsimulator.serveraddr 192.168.71.140 --log_config.global_log_options level,nocolor,time
|
|
depends_on:
|
|
- oai-gnb
|
|
networks:
|
|
public_net:
|
|
ipv4_address: 192.168.71.151
|
|
devices:
|
|
- /dev/net/tun:/dev/net/tun
|
|
volumes:
|
|
- ../../conf_files/nrue.uicc.yaml:/opt/oai-nr-ue/etc/nr-ue.yaml
|
|
healthcheck:
|
|
test: /bin/bash -c "pgrep nr-uesoftmodem"
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
oai-nr-ue2:
|
|
image: nakaolab:oct1
|
|
command: ["-c", "stdbuf -oL /oai-ran/cmake_targets/ran_build/build/nr-uesoftmodem -E --rfsim -r 106 --numerology 1 --uicc0.imsi 208990100001101 -C 3319680000 --rfsimulator.serveraddr 192.168.71.140 --log_config.global_log_options level,nocolor,time"]
|
|
container_name: oai-nr-ue2
|
|
cap_drop:
|
|
- ALL
|
|
cap_add:
|
|
- NET_ADMIN # for interface bringup
|
|
- NET_RAW # for ping
|
|
depends_on:
|
|
- oai-gnb
|
|
networks:
|
|
public_net:
|
|
ipv4_address: 192.168.71.152
|
|
devices:
|
|
- /dev/net/tun:/dev/net/tun
|
|
volumes:
|
|
- ../../conf_files/nrue.uicc.conf:/opt/oai-nr-ue/etc/nr-ue.conf
|
|
healthcheck:
|
|
test: /bin/bash -c "pgrep nr-uesoftmodem"
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
oai-nr-ue3:
|
|
image: nakaolab:oct1
|
|
command: ["-c", "stdbuf -oL /oai-ran/cmake_targets/ran_build/build/nr-uesoftmodem -E --rfsim -r 106 --numerology 1 --uicc0.imsi 208990100001102 -C 3319680000 --rfsimulator.serveraddr 192.168.71.140 --log_config.global_log_options level,nocolor,time"]
|
|
container_name: oai-nr-ue3
|
|
cap_drop:
|
|
- ALL
|
|
cap_add:
|
|
- NET_ADMIN # for interface bringup
|
|
- NET_RAW # for ping
|
|
depends_on:
|
|
- oai-gnb
|
|
networks:
|
|
public_net:
|
|
ipv4_address: 192.168.71.153
|
|
devices:
|
|
- /dev/net/tun:/dev/net/tun
|
|
volumes:
|
|
- ../../conf_files/nrue.uicc.conf:/opt/oai-nr-ue/etc/nr-ue.conf
|
|
healthcheck:
|
|
test: /bin/bash -c "pgrep nr-uesoftmodem"
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
oai-nr-ue4:
|
|
image: nakaolab:oct1
|
|
command: ["-c", "stdbuf -oL /oai-ran/cmake_targets/ran_build/build/nr-uesoftmodem -E --rfsim -r 106 --numerology 1 --uicc0.imsi 208990100001103 -C 3319680000 --rfsimulator.serveraddr 192.168.71.140 --log_config.global_log_options level,nocolor,time"]
|
|
container_name: oai-nr-ue4
|
|
cap_drop:
|
|
- ALL
|
|
cap_add:
|
|
- NET_ADMIN # for interface bringup
|
|
- NET_RAW # for ping
|
|
depends_on:
|
|
- oai-gnb
|
|
networks:
|
|
public_net:
|
|
ipv4_address: 192.168.71.154
|
|
devices:
|
|
- /dev/net/tun:/dev/net/tun
|
|
volumes:
|
|
- ../../conf_files/nrue.uicc.conf:/opt/oai-nr-ue/etc/nr-ue.conf
|
|
healthcheck:
|
|
test: /bin/bash -c "pgrep nr-uesoftmodem"
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
oai-nr-ue5:
|
|
image: nakaolab:oct1
|
|
command: ["-c", "stdbuf -oL /oai-ran/cmake_targets/ran_build/build/nr-uesoftmodem -E --rfsim -r 106 --numerology 1 --uicc0.imsi 208990100001104 -C 3319680000 --rfsimulator.serveraddr 192.168.71.140 --log_config.global_log_options level,nocolor,time"]
|
|
container_name: oai-nr-ue5
|
|
cap_drop:
|
|
- ALL
|
|
cap_add:
|
|
- NET_ADMIN # for interface bringup
|
|
- NET_RAW # for ping
|
|
depends_on:
|
|
- oai-gnb
|
|
networks:
|
|
public_net:
|
|
ipv4_address: 192.168.71.155
|
|
devices:
|
|
- /dev/net/tun:/dev/net/tun
|
|
volumes:
|
|
- ../../conf_files/nrue.uicc.conf:/opt/oai-nr-ue/etc/nr-ue.conf
|
|
healthcheck:
|
|
test: /bin/bash -c "pgrep nr-uesoftmodem"
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
oai-nr-ue6:
|
|
image: nakaolab:oct1
|
|
command: ["-c", "stdbuf -oL /oai-ran/cmake_targets/ran_build/build/nr-uesoftmodem -E --rfsim -r 106 --numerology 1 --uicc0.imsi 208990100001105 -C 3319680000 --rfsimulator.serveraddr 192.168.71.140 --log_config.global_log_options level,nocolor,time"]
|
|
container_name: oai-nr-ue6
|
|
cap_drop:
|
|
- ALL
|
|
cap_add:
|
|
- NET_ADMIN # for interface bringup
|
|
- NET_RAW # for ping
|
|
depends_on:
|
|
- oai-gnb
|
|
networks:
|
|
public_net:
|
|
ipv4_address: 192.168.71.156
|
|
devices:
|
|
- /dev/net/tun:/dev/net/tun
|
|
volumes:
|
|
- ../../conf_files/nrue.uicc.conf:/opt/oai-nr-ue/etc/nr-ue.conf
|
|
healthcheck:
|
|
test: /bin/bash -c "pgrep nr-uesoftmodem"
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
oai-nr-ue7:
|
|
image: nakaolab:oct1
|
|
command: ["-c", "stdbuf -oL /oai-ran/cmake_targets/ran_build/build/nr-uesoftmodem -E --rfsim -r 106 --numerology 1 --uicc0.imsi 208990100001106 -C 3319680000 --rfsimulator.serveraddr 192.168.71.140 --log_config.global_log_options level,nocolor,time"]
|
|
container_name: oai-nr-ue7
|
|
cap_drop:
|
|
- ALL
|
|
cap_add:
|
|
- NET_ADMIN # for interface bringup
|
|
- NET_RAW # for ping
|
|
depends_on:
|
|
- oai-gnb
|
|
networks:
|
|
public_net:
|
|
ipv4_address: 192.168.71.157
|
|
devices:
|
|
- /dev/net/tun:/dev/net/tun
|
|
volumes:
|
|
- ../../conf_files/nrue.uicc.conf:/opt/oai-nr-ue/etc/nr-ue.conf
|
|
healthcheck:
|
|
test: /bin/bash -c "pgrep nr-uesoftmodem"
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
oai-nr-ue8:
|
|
image: nakaolab:oct1
|
|
command: ["-c", "stdbuf -oL /oai-ran/cmake_targets/ran_build/build/nr-uesoftmodem -E --rfsim -r 106 --numerology 1 --uicc0.imsi 208990100001107 -C 3319680000 --rfsimulator.serveraddr 192.168.71.140 --log_config.global_log_options level,nocolor,time"]
|
|
container_name: oai-nr-ue8
|
|
cap_drop:
|
|
- ALL
|
|
cap_add:
|
|
- NET_ADMIN # for interface bringup
|
|
- NET_RAW # for ping
|
|
depends_on:
|
|
- oai-gnb
|
|
networks:
|
|
public_net:
|
|
ipv4_address: 192.168.71.158
|
|
devices:
|
|
- /dev/net/tun:/dev/net/tun
|
|
volumes:
|
|
- ../../conf_files/nrue.uicc.conf:/opt/oai-nr-ue/etc/nr-ue.conf
|
|
healthcheck:
|
|
test: /bin/bash -c "pgrep nr-uesoftmodem"
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
oai-nr-ue9:
|
|
image: nakaolab:oct1
|
|
command: ["-c", "stdbuf -oL /oai-ran/cmake_targets/ran_build/build/nr-uesoftmodem -E --rfsim -r 106 --numerology 1 --uicc0.imsi 208990100001108 -C 3319680000 --rfsimulator.serveraddr 192.168.71.140 --log_config.global_log_options level,nocolor,time"]
|
|
container_name: oai-nr-ue9
|
|
cap_drop:
|
|
- ALL
|
|
cap_add:
|
|
- NET_ADMIN # for interface bringup
|
|
- NET_RAW # for ping
|
|
depends_on:
|
|
- oai-gnb
|
|
networks:
|
|
public_net:
|
|
ipv4_address: 192.168.71.159
|
|
devices:
|
|
- /dev/net/tun:/dev/net/tun
|
|
volumes:
|
|
- ../../conf_files/nrue.uicc.conf:/opt/oai-nr-ue/etc/nr-ue.conf
|
|
healthcheck:
|
|
test: /bin/bash -c "pgrep nr-uesoftmodem"
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
oai-nr-ue10:
|
|
image: nakaolab:oct1
|
|
command: ["-c", "stdbuf -oL /oai-ran/cmake_targets/ran_build/build/nr-uesoftmodem -E --rfsim -r 106 --numerology 1 --uicc0.imsi 208990100001109 -C 3319680000 --rfsimulator.serveraddr 192.168.71.140 --log_config.global_log_options level,nocolor,time"]
|
|
container_name: oai-nr-ue10
|
|
cap_drop:
|
|
- ALL
|
|
cap_add:
|
|
- NET_ADMIN # for interface bringup
|
|
- NET_RAW # for ping
|
|
depends_on:
|
|
- oai-gnb
|
|
networks:
|
|
public_net:
|
|
ipv4_address: 192.168.71.160
|
|
devices:
|
|
- /dev/net/tun:/dev/net/tun
|
|
volumes:
|
|
- ../../conf_files/nrue.uicc.conf:/opt/oai-nr-ue/etc/nr-ue.conf
|
|
healthcheck:
|
|
test: /bin/bash -c "pgrep nr-uesoftmodem"
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
# iperf:
|
|
# image: phlak/iperf
|
|
# container_name: iperf
|
|
# ports:
|
|
# - "5201:5201/tcp"
|
|
# - "5201:5201/udp"
|
|
# networks:
|
|
# traffic_net:
|
|
# ipv4_address: 192.168.72.130
|
|
# restart: unless-stopped
|
|
|
|
iperf:
|
|
image: mlabbe/iperf
|
|
container_name: iperf
|
|
command: ["-s", "-p 5201"]
|
|
ports:
|
|
- "5201:5201/tcp"
|
|
- "5201:5201/udp"
|
|
networks:
|
|
public_net:
|
|
ipv4_address: 192.168.71.130
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
public_net:
|
|
driver: bridge
|
|
name: rfsim5g-oai-public-net
|
|
ipam:
|
|
config:
|
|
- subnet: 192.168.71.0/24
|
|
driver_opts:
|
|
com.docker.network.bridge.name: "rfsim5g-public"
|
|
traffic_net:
|
|
driver: bridge
|
|
name: rfsim5g-oai-traffic-net
|
|
ipam:
|
|
config:
|
|
- subnet: 192.168.72.128/26
|
|
driver_opts:
|
|
com.docker.network.bridge.name: "rfsim5g-traffic"
|