mirror of
https://github.com/Borjis131/docker-open5gs.git
synced 2025-11-02 12:53:13 +00:00
Move Compose file 2.x and 3.x to misc/examples/
This commit is contained in:
230
misc/examples/basic-compose-file-v2.x/docker-compose.yaml
Normal file
230
misc/examples/basic-compose-file-v2.x/docker-compose.yaml
Normal file
@@ -0,0 +1,230 @@
|
||||
version: "2.4"
|
||||
|
||||
services:
|
||||
db:
|
||||
container_name: db
|
||||
image: "mongo:${MONGODB_VERSION}"
|
||||
command: "mongod --bind_ip 0.0.0.0 --port 27017"
|
||||
networks:
|
||||
open5gs:
|
||||
aliases:
|
||||
- db.open5gs.org
|
||||
volumes:
|
||||
- db_data:/data/db
|
||||
- db_config:/data/configdb
|
||||
ports:
|
||||
- "0.0.0.0:27017:27017/tcp"
|
||||
|
||||
nrf:
|
||||
container_name: nrf
|
||||
image: "nrf:${OPEN5GS_VERSION}"
|
||||
build:
|
||||
context: ../../images/nrf
|
||||
args:
|
||||
- OPEN5GS_VERSION=${OPEN5GS_VERSION}
|
||||
- UBUNTU_VERSION=${UBUNTU_VERSION}
|
||||
command: "-c /open5gs/config/nrf.yaml"
|
||||
networks:
|
||||
open5gs:
|
||||
aliases:
|
||||
- nrf.open5gs.org
|
||||
volumes:
|
||||
- ../../configs/basic/nrf.yaml:/open5gs/config/nrf.yaml
|
||||
|
||||
ausf:
|
||||
container_name: ausf
|
||||
image: "ausf:${OPEN5GS_VERSION}"
|
||||
build:
|
||||
context: ../../images/ausf
|
||||
args:
|
||||
- OPEN5GS_VERSION=${OPEN5GS_VERSION}
|
||||
- UBUNTU_VERSION=${UBUNTU_VERSION}
|
||||
command: "-c /open5gs/config/ausf.yaml"
|
||||
networks:
|
||||
open5gs:
|
||||
aliases:
|
||||
- ausf.open5gs.org
|
||||
volumes:
|
||||
- ../../configs/basic/ausf.yaml:/open5gs/config/ausf.yaml
|
||||
depends_on:
|
||||
- nrf
|
||||
|
||||
udm:
|
||||
container_name: udm
|
||||
image: "udm:${OPEN5GS_VERSION}"
|
||||
build:
|
||||
context: ../../images/udm
|
||||
args:
|
||||
- OPEN5GS_VERSION=${OPEN5GS_VERSION}
|
||||
- UBUNTU_VERSION=${UBUNTU_VERSION}
|
||||
command: "-c /open5gs/config/udm.yaml"
|
||||
networks:
|
||||
open5gs:
|
||||
aliases:
|
||||
- udm.open5gs.org
|
||||
volumes:
|
||||
- ../../configs/basic/udm.yaml:/open5gs/config/udm.yaml
|
||||
depends_on:
|
||||
- nrf
|
||||
|
||||
udr:
|
||||
container_name: udr
|
||||
image: "udr:${OPEN5GS_VERSION}"
|
||||
build:
|
||||
context: ../../images/udr
|
||||
args:
|
||||
- OPEN5GS_VERSION=${OPEN5GS_VERSION}
|
||||
- UBUNTU_VERSION=${UBUNTU_VERSION}
|
||||
command: "-c /open5gs/config/udr.yaml"
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
open5gs:
|
||||
aliases:
|
||||
- udr.open5gs.org
|
||||
volumes:
|
||||
- ../../configs/basic/udr.yaml:/open5gs/config/udr.yaml
|
||||
depends_on:
|
||||
- db
|
||||
- nrf
|
||||
|
||||
nssf:
|
||||
container_name: nssf
|
||||
image: "nssf:${OPEN5GS_VERSION}"
|
||||
build:
|
||||
context: ../../images/nssf
|
||||
args:
|
||||
- OPEN5GS_VERSION=${OPEN5GS_VERSION}
|
||||
- UBUNTU_VERSION=${UBUNTU_VERSION}
|
||||
command: "-c /open5gs/config/nssf.yaml"
|
||||
networks:
|
||||
open5gs:
|
||||
aliases:
|
||||
- nssf.open5gs.org
|
||||
volumes:
|
||||
- ../../configs/basic/nssf.yaml:/open5gs/config/nssf.yaml
|
||||
depends_on:
|
||||
- nrf
|
||||
|
||||
bsf:
|
||||
container_name: bsf
|
||||
image: "bsf:${OPEN5GS_VERSION}"
|
||||
build:
|
||||
context: ../../images/bsf
|
||||
args:
|
||||
- OPEN5GS_VERSION=${OPEN5GS_VERSION}
|
||||
- UBUNTU_VERSION=${UBUNTU_VERSION}
|
||||
command: "-c /open5gs/config/bsf.yaml"
|
||||
networks:
|
||||
open5gs:
|
||||
aliases:
|
||||
- bsf.open5gs.org
|
||||
volumes:
|
||||
- ../../configs/basic/bsf.yaml:/open5gs/config/bsf.yaml
|
||||
depends_on:
|
||||
- nrf
|
||||
|
||||
pcf:
|
||||
container_name: pcf
|
||||
image: "pcf:${OPEN5GS_VERSION}"
|
||||
build:
|
||||
context: ../../images/pcf
|
||||
args:
|
||||
- OPEN5GS_VERSION=${OPEN5GS_VERSION}
|
||||
- UBUNTU_VERSION=${UBUNTU_VERSION}
|
||||
command: "-c /open5gs/config/pcf.yaml"
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
open5gs:
|
||||
aliases:
|
||||
- pcf.open5gs.org
|
||||
volumes:
|
||||
- ../../configs/basic/pcf.yaml:/open5gs/config/pcf.yaml
|
||||
depends_on:
|
||||
- db
|
||||
- nrf
|
||||
|
||||
amf:
|
||||
container_name: amf
|
||||
image: "amf:${OPEN5GS_VERSION}"
|
||||
build:
|
||||
context: ../../images/amf
|
||||
args:
|
||||
- OPEN5GS_VERSION=${OPEN5GS_VERSION}
|
||||
- UBUNTU_VERSION=${UBUNTU_VERSION}
|
||||
command: "-c /open5gs/config/amf.yaml"
|
||||
networks:
|
||||
open5gs:
|
||||
aliases:
|
||||
- amf.open5gs.org
|
||||
volumes:
|
||||
- ../../configs/basic/amf.yaml:/open5gs/config/amf.yaml
|
||||
depends_on:
|
||||
- nrf
|
||||
ports:
|
||||
- "0.0.0.0:38412:38412/sctp"
|
||||
|
||||
smf:
|
||||
container_name: smf
|
||||
image: "smf:${OPEN5GS_VERSION}"
|
||||
build:
|
||||
context: ../../images/smf
|
||||
args:
|
||||
- OPEN5GS_VERSION=${OPEN5GS_VERSION}
|
||||
- UBUNTU_VERSION=${UBUNTU_VERSION}
|
||||
command: "-c /open5gs/config/smf.yaml"
|
||||
networks:
|
||||
open5gs:
|
||||
aliases:
|
||||
- smf.open5gs.org
|
||||
volumes:
|
||||
- ../../configs/basic/smf.yaml:/open5gs/config/smf.yaml
|
||||
depends_on:
|
||||
- nrf
|
||||
- upf
|
||||
|
||||
upf:
|
||||
container_name: upf
|
||||
image: "upf:${OPEN5GS_VERSION}"
|
||||
build:
|
||||
context: ../../images/upf
|
||||
args:
|
||||
- OPEN5GS_VERSION=${OPEN5GS_VERSION}
|
||||
- UBUNTU_VERSION=${UBUNTU_VERSION}
|
||||
command: "-c /open5gs/config/upf.yaml"
|
||||
networks:
|
||||
open5gs:
|
||||
aliases:
|
||||
- upf.open5gs.org
|
||||
extra_hosts:
|
||||
docker-host.external-ip: ${DOCKER_HOST_IP}
|
||||
volumes:
|
||||
- ../../configs/basic/upf.yaml:/open5gs/config/upf.yaml
|
||||
ports:
|
||||
- "0.0.0.0:2152:2152/udp"
|
||||
devices:
|
||||
- /dev/net/tun
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
sysctls:
|
||||
- net.ipv4.ip_forward=1
|
||||
|
||||
networks:
|
||||
open5gs:
|
||||
name: open5gs
|
||||
driver: bridge
|
||||
driver_opts:
|
||||
com.docker.network.bridge.name: br-ogs
|
||||
ipam:
|
||||
config:
|
||||
- subnet: 10.33.33.0/24
|
||||
gateway: 10.33.33.1
|
||||
|
||||
volumes:
|
||||
db_data:
|
||||
name: open5gs_db_data
|
||||
labels:
|
||||
org.open5gs.mongodb_version: ${MONGODB_VERSION}
|
||||
db_config:
|
||||
name: open5gs_db_config
|
||||
labels:
|
||||
org.open5gs.mongodb_version: ${MONGODB_VERSION}
|
||||
262
misc/examples/basic-compose-file-v3.x/docker-compose.yaml
Normal file
262
misc/examples/basic-compose-file-v3.x/docker-compose.yaml
Normal file
@@ -0,0 +1,262 @@
|
||||
version: "3.5"
|
||||
|
||||
services:
|
||||
db:
|
||||
container_name: db
|
||||
image: "mongo:${MONGODB_VERSION}"
|
||||
command: "mongod --bind_ip 0.0.0.0 --port 27017"
|
||||
networks:
|
||||
open5gs:
|
||||
aliases:
|
||||
- db.open5gs.org
|
||||
volumes:
|
||||
- db_data:/data/db
|
||||
- db_config:/data/configdb
|
||||
ports:
|
||||
- "0.0.0.0:27017:27017/tcp"
|
||||
|
||||
nrf:
|
||||
container_name: nrf
|
||||
image: "nrf:${OPEN5GS_VERSION}"
|
||||
build:
|
||||
context: ../../images/nrf
|
||||
args:
|
||||
- OPEN5GS_VERSION=${OPEN5GS_VERSION}
|
||||
- UBUNTU_VERSION=${UBUNTU_VERSION}
|
||||
command: "-c /open5gs/config/nrf.yaml"
|
||||
networks:
|
||||
open5gs:
|
||||
aliases:
|
||||
- nrf.open5gs.org
|
||||
configs:
|
||||
- source: nrf_config
|
||||
target: /open5gs/config/nrf.yaml
|
||||
|
||||
ausf:
|
||||
container_name: ausf
|
||||
image: "ausf:${OPEN5GS_VERSION}"
|
||||
build:
|
||||
context: ../../images/ausf
|
||||
args:
|
||||
- OPEN5GS_VERSION=${OPEN5GS_VERSION}
|
||||
- UBUNTU_VERSION=${UBUNTU_VERSION}
|
||||
command: "-c /open5gs/config/ausf.yaml"
|
||||
networks:
|
||||
open5gs:
|
||||
aliases:
|
||||
- ausf.open5gs.org
|
||||
configs:
|
||||
- source: ausf_config
|
||||
target: /open5gs/config/ausf.yaml
|
||||
depends_on:
|
||||
- nrf
|
||||
|
||||
udm:
|
||||
container_name: udm
|
||||
image: "udm:${OPEN5GS_VERSION}"
|
||||
build:
|
||||
context: ../../images/udm
|
||||
args:
|
||||
- OPEN5GS_VERSION=${OPEN5GS_VERSION}
|
||||
- UBUNTU_VERSION=${UBUNTU_VERSION}
|
||||
command: "-c /open5gs/config/udm.yaml"
|
||||
networks:
|
||||
open5gs:
|
||||
aliases:
|
||||
- udm.open5gs.org
|
||||
configs:
|
||||
- source: udm_config
|
||||
target: /open5gs/config/udm.yaml
|
||||
depends_on:
|
||||
- nrf
|
||||
|
||||
udr:
|
||||
container_name: udr
|
||||
image: "udr:${OPEN5GS_VERSION}"
|
||||
build:
|
||||
context: ../../images/udr
|
||||
args:
|
||||
- OPEN5GS_VERSION=${OPEN5GS_VERSION}
|
||||
- UBUNTU_VERSION=${UBUNTU_VERSION}
|
||||
command: "-c /open5gs/config/udr.yaml"
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
open5gs:
|
||||
aliases:
|
||||
- udr.open5gs.org
|
||||
configs:
|
||||
- source: udr_config
|
||||
target: /open5gs/config/udr.yaml
|
||||
depends_on:
|
||||
- db
|
||||
- nrf
|
||||
|
||||
nssf:
|
||||
container_name: nssf
|
||||
image: "nssf:${OPEN5GS_VERSION}"
|
||||
build:
|
||||
context: ../../images/nssf
|
||||
args:
|
||||
- OPEN5GS_VERSION=${OPEN5GS_VERSION}
|
||||
- UBUNTU_VERSION=${UBUNTU_VERSION}
|
||||
command: "-c /open5gs/config/nssf.yaml"
|
||||
networks:
|
||||
open5gs:
|
||||
aliases:
|
||||
- nssf.open5gs.org
|
||||
configs:
|
||||
- source: nssf_config
|
||||
target: /open5gs/config/nssf.yaml
|
||||
depends_on:
|
||||
- nrf
|
||||
|
||||
bsf:
|
||||
container_name: bsf
|
||||
image: "bsf:${OPEN5GS_VERSION}"
|
||||
build:
|
||||
context: ../../images/bsf
|
||||
args:
|
||||
- OPEN5GS_VERSION=${OPEN5GS_VERSION}
|
||||
- UBUNTU_VERSION=${UBUNTU_VERSION}
|
||||
command: "-c /open5gs/config/bsf.yaml"
|
||||
networks:
|
||||
open5gs:
|
||||
aliases:
|
||||
- bsf.open5gs.org
|
||||
configs:
|
||||
- source: bsf_config
|
||||
target: /open5gs/config/bsf.yaml
|
||||
depends_on:
|
||||
- nrf
|
||||
|
||||
pcf:
|
||||
container_name: pcf
|
||||
image: "pcf:${OPEN5GS_VERSION}"
|
||||
build:
|
||||
context: ../../images/pcf
|
||||
args:
|
||||
- OPEN5GS_VERSION=${OPEN5GS_VERSION}
|
||||
- UBUNTU_VERSION=${UBUNTU_VERSION}
|
||||
command: "-c /open5gs/config/pcf.yaml"
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
open5gs:
|
||||
aliases:
|
||||
- pcf.open5gs.org
|
||||
configs:
|
||||
- source: pcf_config
|
||||
target: /open5gs/config/pcf.yaml
|
||||
depends_on:
|
||||
- db
|
||||
- nrf
|
||||
|
||||
amf:
|
||||
container_name: amf
|
||||
image: "amf:${OPEN5GS_VERSION}"
|
||||
build:
|
||||
context: ../../images/amf
|
||||
args:
|
||||
- OPEN5GS_VERSION=${OPEN5GS_VERSION}
|
||||
- UBUNTU_VERSION=${UBUNTU_VERSION}
|
||||
command: "-c /open5gs/config/amf.yaml"
|
||||
networks:
|
||||
open5gs:
|
||||
aliases:
|
||||
- amf.open5gs.org
|
||||
configs:
|
||||
- source: amf_config
|
||||
target: /open5gs/config/amf.yaml
|
||||
depends_on:
|
||||
- nrf
|
||||
ports:
|
||||
- "0.0.0.0:38412:38412/sctp"
|
||||
|
||||
smf:
|
||||
container_name: smf
|
||||
image: "smf:${OPEN5GS_VERSION}"
|
||||
build:
|
||||
context: ../../images/smf
|
||||
args:
|
||||
- OPEN5GS_VERSION=${OPEN5GS_VERSION}
|
||||
- UBUNTU_VERSION=${UBUNTU_VERSION}
|
||||
command: "-c /open5gs/config/smf.yaml"
|
||||
networks:
|
||||
open5gs:
|
||||
aliases:
|
||||
- smf.open5gs.org
|
||||
configs:
|
||||
- source: smf_config
|
||||
target: /open5gs/config/smf.yaml
|
||||
depends_on:
|
||||
- nrf
|
||||
- upf
|
||||
|
||||
upf:
|
||||
container_name: upf
|
||||
image: "upf:${OPEN5GS_VERSION}"
|
||||
build:
|
||||
context: ../../images/upf
|
||||
args:
|
||||
- OPEN5GS_VERSION=${OPEN5GS_VERSION}
|
||||
- UBUNTU_VERSION=${UBUNTU_VERSION}
|
||||
command: "-c /open5gs/config/upf.yaml"
|
||||
networks:
|
||||
open5gs:
|
||||
aliases:
|
||||
- upf.open5gs.org
|
||||
extra_hosts:
|
||||
docker-host.external-ip: ${DOCKER_HOST_IP}
|
||||
configs:
|
||||
- source: upf_config
|
||||
target: /open5gs/config/upf.yaml
|
||||
ports:
|
||||
- "0.0.0.0:2152:2152/udp"
|
||||
devices:
|
||||
- /dev/net/tun
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
sysctls:
|
||||
- net.ipv4.ip_forward=1
|
||||
|
||||
networks:
|
||||
open5gs:
|
||||
name: open5gs
|
||||
driver: bridge
|
||||
driver_opts:
|
||||
com.docker.network.bridge.name: br-ogs
|
||||
ipam:
|
||||
config:
|
||||
- subnet: 10.33.33.0/24
|
||||
#gateway: 10.33.33.1
|
||||
|
||||
volumes:
|
||||
db_data:
|
||||
name: open5gs_db_data
|
||||
labels:
|
||||
org.open5gs.mongodb_version: ${MONGODB_VERSION}
|
||||
db_config:
|
||||
name: open5gs_db_config
|
||||
labels:
|
||||
org.open5gs.mongodb_version: ${MONGODB_VERSION}
|
||||
|
||||
configs:
|
||||
nrf_config:
|
||||
file: ../../configs/basic/nrf.yaml
|
||||
ausf_config:
|
||||
file: ../../configs/basic/ausf.yaml
|
||||
udm_config:
|
||||
file: ../../configs/basic/udm.yaml
|
||||
udr_config:
|
||||
file: ../../configs/basic/udr.yaml
|
||||
nssf_config:
|
||||
file: ../../configs/basic/nssf.yaml
|
||||
bsf_config:
|
||||
file: ../../configs/basic/bsf.yaml
|
||||
pcf_config:
|
||||
file: ../../configs/basic/pcf.yaml
|
||||
amf_config:
|
||||
file: ../../configs/basic/amf.yaml
|
||||
smf_config:
|
||||
file: ../../configs/basic/smf.yaml
|
||||
upf_config:
|
||||
file: ../../configs/basic/upf.yaml
|
||||
Reference in New Issue
Block a user