166 lines
5.3 KiB
YAML
166 lines
5.3 KiB
YAML
services:
|
|
mysql:
|
|
container_name: "l2sim-mysql"
|
|
image: mysql:8.0
|
|
volumes:
|
|
- ../5g_rfsimulator/oai_db.sql:/docker-entrypoint-initdb.d/oai_db.sql
|
|
- ../5g_rfsimulator/mysql-healthcheck.sh:/tmp/mysql-healthcheck.sh
|
|
environment:
|
|
- TZ=Europe/Paris
|
|
- 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: "l2sim-oai-amf"
|
|
image: oaisoftwarealliance/oai-amf:v2.0.0
|
|
environment:
|
|
- TZ=Europe/paris
|
|
volumes:
|
|
- ../5g_rfsimulator/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: "l2sim-oai-smf"
|
|
image: oaisoftwarealliance/oai-smf:v2.0.0
|
|
environment:
|
|
- TZ=Europe/Paris
|
|
volumes:
|
|
- ../5g_rfsimulator/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: "l2sim-oai-upf"
|
|
image: oaisoftwarealliance/oai-upf:v2.0.0
|
|
environment:
|
|
- TZ=Europe/Paris
|
|
volumes:
|
|
- ../5g_rfsimulator/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: "l2sim-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: ${REGISTRY:-oaisoftwarealliance}/${GNB_IMG:-oai-gnb}:${TAG:-develop}
|
|
container_name: "l2sim-oai-gnb"
|
|
cap_drop:
|
|
- ALL
|
|
network_mode: "host"
|
|
environment:
|
|
TZ: Europe/Paris
|
|
USE_ADDITIONAL_OPTIONS: --sa --nfapi VNF --emulate-l1 --log_config.global_log_options level,time,thread_id,nocolor
|
|
ASAN_OPTIONS: detect_leaks=0
|
|
depends_on:
|
|
- oai-upf
|
|
- oai-amf
|
|
volumes:
|
|
- ../../conf_files/gnb.sa.band78.106prb.l2sim.conf:/opt/oai-gnb/etc/gnb.conf
|
|
healthcheck:
|
|
test: /bin/bash -c "pgrep nr-softmodem"
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
proxy:
|
|
image: oai-lte-multi-ue-proxy:latest
|
|
container_name: "l2sim-proxy"
|
|
cap_drop:
|
|
- ALL
|
|
network_mode: "host"
|
|
environment:
|
|
TZ: Europe/Paris
|
|
command: "/oai-lte-multi-ue-proxy/bin/proxy 1 --nr"
|
|
depends_on:
|
|
- oai-gnb
|
|
healthcheck:
|
|
test: /bin/bash -c "pgrep proxy"
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
oai-nr-ue0:
|
|
image: ${REGISTRY:-oaisoftwarealliance}/${NRUE_IMG:-oai-nr-ue}:${TAG:-develop}
|
|
container_name: "l2sim-oai-nr-ue0"
|
|
cap_drop:
|
|
- ALL
|
|
cap_add:
|
|
- NET_ADMIN # for interface bringup
|
|
- NET_RAW # for ping
|
|
network_mode: "host"
|
|
environment:
|
|
TZ: Europe/Paris
|
|
OPENAIR_DIR: /opt/oai-nr-ue
|
|
USE_ADDITIONAL_OPTIONS: --nfapi STANDALONE_PNF --node-number 2 --sa --emulate-l1 --log_config.global_log_options level,time,thread_id,nocolor
|
|
ASAN_OPTIONS: detect_leaks=0
|
|
devices:
|
|
- /dev/net/tun:/dev/net/tun
|
|
volumes:
|
|
- ../../conf_files/nrue.band78.106prb.l2sim.conf:/opt/oai-nr-ue/etc/nr-ue.conf
|
|
- ../../../openair1/SIMULATION/LTE_PHY/BLER_SIMULATIONS/AWGN/AWGN_results:/opt/oai-nr-ue/openair1/SIMULATION/LTE_PHY/BLER_SIMULATIONS/AWGN/AWGN_results
|
|
depends_on:
|
|
- oai-gnb
|
|
- proxy
|
|
healthcheck:
|
|
test: /bin/bash -c "pgrep nr-uesoftmodem"
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
networks:
|
|
public_net:
|
|
driver: bridge
|
|
name: l2sim-oai-public-net
|
|
ipam:
|
|
config:
|
|
- subnet: 192.168.71.128/26
|
|
driver_opts:
|
|
com.docker.network.bridge.name: "l2sim-public"
|
|
traffic_net:
|
|
driver: bridge
|
|
name: l2sim-oai-traffic-net
|
|
ipam:
|
|
config:
|
|
- subnet: 192.168.72.128/26
|
|
driver_opts:
|
|
com.docker.network.bridge.name: "l2sim-traffic"
|