open5gs/docker/docker-compose.yml

124 lines
3.1 KiB
YAML
Raw Normal View History

version: '3'
services:
2018-02-20 10:36:34 +00:00
mongodb:
image: mongo
container_name: open5gs-mongodb
2018-02-20 10:36:34 +00:00
ports:
- "27017:27017"
Squashed commit of the following: commit 5070c19a5469269d036bf243ebdb2740aefc7b8d Author: Sukchan Lee <acetcom@gmail.com> Date: Fri Nov 4 15:46:35 2022 +0900 updte it commit e49107f46152ff6dce5658b48cfb2c31df61724a Author: Sukchan Lee <acetcom@gmail.com> Date: Fri Nov 4 11:03:37 2022 +0900 update it commit a55b977e044b1d74ccc8a19f1dbf8194c3cd7daa Author: Sukchan Lee <acetcom@gmail.com> Date: Fri Nov 4 10:50:41 2022 +0900 update it commit 0ff0930d99bfeb91134271dae0941b4c454d1a3d Author: Sukchan Lee <acetcom@gmail.com> Date: Fri Nov 4 10:09:35 2022 +0900 update it commit 8cb5038b66d4a605446c6fc200b77f645f7ad328 Author: Sukchan Lee <acetcom@gmail.com> Date: Fri Nov 4 09:39:08 2022 +0900 update it commit 0a6829dfb6470f3d9b786363d49387fdc688e33b Author: Sukchan Lee <acetcom@gmail.com> Date: Fri Nov 4 09:06:22 2022 +0900 update it commit ea85035300d9a42cc5f8f7ee300d28cd055f0f1c Author: Sukchan Lee <acetcom@gmail.com> Date: Thu Nov 3 21:36:17 2022 +0900 update it commit e86ba621de332d3f712569cf0580fc8a5321adbd Author: Sukchan Lee <acetcom@gmail.com> Date: Thu Nov 3 17:39:27 2022 +0900 update it commit 2c05df84eabeba7c277c622e5d810768b2895961 Author: Sukchan Lee <acetcom@gmail.com> Date: Thu Nov 3 16:20:47 2022 +0900 update it commit 43c88aed3f2001fdbc28ce0f11cc21dfcdc5906f Author: Sukchan Lee <acetcom@gmail.com> Date: Wed Nov 2 22:17:37 2022 +0900 update it commit b374db4e02e7dd153944f5a6fdc2a50c434dfa09 Author: Sukchan Lee <acetcom@gmail.com> Date: Wed Nov 2 22:05:53 2022 +0900 update it
2022-11-04 08:39:29 +00:00
restart: unless-stopped
2018-02-20 10:36:34 +00:00
volumes:
- mongodb:/data/db
Squashed commit of the following: commit 5070c19a5469269d036bf243ebdb2740aefc7b8d Author: Sukchan Lee <acetcom@gmail.com> Date: Fri Nov 4 15:46:35 2022 +0900 updte it commit e49107f46152ff6dce5658b48cfb2c31df61724a Author: Sukchan Lee <acetcom@gmail.com> Date: Fri Nov 4 11:03:37 2022 +0900 update it commit a55b977e044b1d74ccc8a19f1dbf8194c3cd7daa Author: Sukchan Lee <acetcom@gmail.com> Date: Fri Nov 4 10:50:41 2022 +0900 update it commit 0ff0930d99bfeb91134271dae0941b4c454d1a3d Author: Sukchan Lee <acetcom@gmail.com> Date: Fri Nov 4 10:09:35 2022 +0900 update it commit 8cb5038b66d4a605446c6fc200b77f645f7ad328 Author: Sukchan Lee <acetcom@gmail.com> Date: Fri Nov 4 09:39:08 2022 +0900 update it commit 0a6829dfb6470f3d9b786363d49387fdc688e33b Author: Sukchan Lee <acetcom@gmail.com> Date: Fri Nov 4 09:06:22 2022 +0900 update it commit ea85035300d9a42cc5f8f7ee300d28cd055f0f1c Author: Sukchan Lee <acetcom@gmail.com> Date: Thu Nov 3 21:36:17 2022 +0900 update it commit e86ba621de332d3f712569cf0580fc8a5321adbd Author: Sukchan Lee <acetcom@gmail.com> Date: Thu Nov 3 17:39:27 2022 +0900 update it commit 2c05df84eabeba7c277c622e5d810768b2895961 Author: Sukchan Lee <acetcom@gmail.com> Date: Thu Nov 3 16:20:47 2022 +0900 update it commit 43c88aed3f2001fdbc28ce0f11cc21dfcdc5906f Author: Sukchan Lee <acetcom@gmail.com> Date: Wed Nov 2 22:17:37 2022 +0900 update it commit b374db4e02e7dd153944f5a6fdc2a50c434dfa09 Author: Sukchan Lee <acetcom@gmail.com> Date: Wed Nov 2 22:05:53 2022 +0900 update it
2022-11-04 08:39:29 +00:00
- ../docs/assets/webui/mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
2018-02-20 10:36:34 +00:00
webui:
build:
context: ../
dockerfile: docker/webui/Dockerfile
image: ${USER}/open5gs-webui
container_name: open5gs-webui
2018-02-20 10:36:34 +00:00
depends_on:
- mongodb
ports:
- "9999:9999"
environment:
Squashed commit of the following: commit 5070c19a5469269d036bf243ebdb2740aefc7b8d Author: Sukchan Lee <acetcom@gmail.com> Date: Fri Nov 4 15:46:35 2022 +0900 updte it commit e49107f46152ff6dce5658b48cfb2c31df61724a Author: Sukchan Lee <acetcom@gmail.com> Date: Fri Nov 4 11:03:37 2022 +0900 update it commit a55b977e044b1d74ccc8a19f1dbf8194c3cd7daa Author: Sukchan Lee <acetcom@gmail.com> Date: Fri Nov 4 10:50:41 2022 +0900 update it commit 0ff0930d99bfeb91134271dae0941b4c454d1a3d Author: Sukchan Lee <acetcom@gmail.com> Date: Fri Nov 4 10:09:35 2022 +0900 update it commit 8cb5038b66d4a605446c6fc200b77f645f7ad328 Author: Sukchan Lee <acetcom@gmail.com> Date: Fri Nov 4 09:39:08 2022 +0900 update it commit 0a6829dfb6470f3d9b786363d49387fdc688e33b Author: Sukchan Lee <acetcom@gmail.com> Date: Fri Nov 4 09:06:22 2022 +0900 update it commit ea85035300d9a42cc5f8f7ee300d28cd055f0f1c Author: Sukchan Lee <acetcom@gmail.com> Date: Thu Nov 3 21:36:17 2022 +0900 update it commit e86ba621de332d3f712569cf0580fc8a5321adbd Author: Sukchan Lee <acetcom@gmail.com> Date: Thu Nov 3 17:39:27 2022 +0900 update it commit 2c05df84eabeba7c277c622e5d810768b2895961 Author: Sukchan Lee <acetcom@gmail.com> Date: Thu Nov 3 16:20:47 2022 +0900 update it commit 43c88aed3f2001fdbc28ce0f11cc21dfcdc5906f Author: Sukchan Lee <acetcom@gmail.com> Date: Wed Nov 2 22:17:37 2022 +0900 update it commit b374db4e02e7dd153944f5a6fdc2a50c434dfa09 Author: Sukchan Lee <acetcom@gmail.com> Date: Wed Nov 2 22:05:53 2022 +0900 update it
2022-11-04 08:39:29 +00:00
- DB_URI=mongodb://mongodb/open5gs
- WAIT_HOSTS=mongodb:27017
2018-02-20 10:36:34 +00:00
base:
build:
2018-02-21 14:20:48 +00:00
context: ./${DIST-ubuntu}/${TAG-latest}/base
2018-02-20 10:36:34 +00:00
args:
2018-02-21 14:20:48 +00:00
dist: ${DIST-ubuntu}
2018-02-20 10:36:34 +00:00
tag: ${TAG-latest}
image: ${USER}/${DIST-ubuntu}-${TAG-latest}-open5gs-base
2018-02-20 10:36:34 +00:00
command: /bin/bash -c "echo 'base' services"
build:
build:
context: ../
dockerfile: docker/build/Dockerfile
2018-02-20 10:36:34 +00:00
args:
dist: ${DIST-ubuntu}
tag: ${TAG-latest}
username: ${USER}
image: ${USER}/${DIST-ubuntu}-${TAG-latest}-open5gs-build
2018-02-20 10:36:34 +00:00
depends_on:
- base
command: /bin/bash -c "echo 'build' services"
run:
# network_mode: "host"
image: ${USER}/${DIST-ubuntu}-${TAG-latest}-open5gs-build
depends_on:
- mongodb
- build
cap_add:
- NET_ADMIN
devices:
- "/dev/net/tun:/dev/net/tun"
sysctls:
- net.ipv6.conf.all.disable_ipv6=0
volumes:
- config:/etc/open5gs
hostname: open5gs-run
# command: /bin/bash -c "/root/setup.sh; /usr/bin/open5gs-pcrfd -D; /usr/bin/open5gs-pgwd -D; /usr/bin/open5gs-sgwd -D; /usr/bin/open5gs-hssd -D; /usr/bin/open5gs-mmed"
test:
image: ${USER}/${DIST-ubuntu}-${TAG-latest}-open5gs-build
depends_on:
- mongodb
- build
environment:
Squashed commit of the following: commit 5070c19a5469269d036bf243ebdb2740aefc7b8d Author: Sukchan Lee <acetcom@gmail.com> Date: Fri Nov 4 15:46:35 2022 +0900 updte it commit e49107f46152ff6dce5658b48cfb2c31df61724a Author: Sukchan Lee <acetcom@gmail.com> Date: Fri Nov 4 11:03:37 2022 +0900 update it commit a55b977e044b1d74ccc8a19f1dbf8194c3cd7daa Author: Sukchan Lee <acetcom@gmail.com> Date: Fri Nov 4 10:50:41 2022 +0900 update it commit 0ff0930d99bfeb91134271dae0941b4c454d1a3d Author: Sukchan Lee <acetcom@gmail.com> Date: Fri Nov 4 10:09:35 2022 +0900 update it commit 8cb5038b66d4a605446c6fc200b77f645f7ad328 Author: Sukchan Lee <acetcom@gmail.com> Date: Fri Nov 4 09:39:08 2022 +0900 update it commit 0a6829dfb6470f3d9b786363d49387fdc688e33b Author: Sukchan Lee <acetcom@gmail.com> Date: Fri Nov 4 09:06:22 2022 +0900 update it commit ea85035300d9a42cc5f8f7ee300d28cd055f0f1c Author: Sukchan Lee <acetcom@gmail.com> Date: Thu Nov 3 21:36:17 2022 +0900 update it commit e86ba621de332d3f712569cf0580fc8a5321adbd Author: Sukchan Lee <acetcom@gmail.com> Date: Thu Nov 3 17:39:27 2022 +0900 update it commit 2c05df84eabeba7c277c622e5d810768b2895961 Author: Sukchan Lee <acetcom@gmail.com> Date: Thu Nov 3 16:20:47 2022 +0900 update it commit 43c88aed3f2001fdbc28ce0f11cc21dfcdc5906f Author: Sukchan Lee <acetcom@gmail.com> Date: Wed Nov 2 22:17:37 2022 +0900 update it commit b374db4e02e7dd153944f5a6fdc2a50c434dfa09 Author: Sukchan Lee <acetcom@gmail.com> Date: Wed Nov 2 22:05:53 2022 +0900 update it
2022-11-04 08:39:29 +00:00
- DB_URI=mongodb://mongodb/open5gs
- WAIT_HOSTS=mongodb:27017
cap_add:
- NET_ADMIN
devices:
- "/dev/net/tun:/dev/net/tun"
sysctls:
- net.ipv6.conf.all.disable_ipv6=0
hostname: open5gs-test
Squashed commit of the following: commit 5070c19a5469269d036bf243ebdb2740aefc7b8d Author: Sukchan Lee <acetcom@gmail.com> Date: Fri Nov 4 15:46:35 2022 +0900 updte it commit e49107f46152ff6dce5658b48cfb2c31df61724a Author: Sukchan Lee <acetcom@gmail.com> Date: Fri Nov 4 11:03:37 2022 +0900 update it commit a55b977e044b1d74ccc8a19f1dbf8194c3cd7daa Author: Sukchan Lee <acetcom@gmail.com> Date: Fri Nov 4 10:50:41 2022 +0900 update it commit 0ff0930d99bfeb91134271dae0941b4c454d1a3d Author: Sukchan Lee <acetcom@gmail.com> Date: Fri Nov 4 10:09:35 2022 +0900 update it commit 8cb5038b66d4a605446c6fc200b77f645f7ad328 Author: Sukchan Lee <acetcom@gmail.com> Date: Fri Nov 4 09:39:08 2022 +0900 update it commit 0a6829dfb6470f3d9b786363d49387fdc688e33b Author: Sukchan Lee <acetcom@gmail.com> Date: Fri Nov 4 09:06:22 2022 +0900 update it commit ea85035300d9a42cc5f8f7ee300d28cd055f0f1c Author: Sukchan Lee <acetcom@gmail.com> Date: Thu Nov 3 21:36:17 2022 +0900 update it commit e86ba621de332d3f712569cf0580fc8a5321adbd Author: Sukchan Lee <acetcom@gmail.com> Date: Thu Nov 3 17:39:27 2022 +0900 update it commit 2c05df84eabeba7c277c622e5d810768b2895961 Author: Sukchan Lee <acetcom@gmail.com> Date: Thu Nov 3 16:20:47 2022 +0900 update it commit 43c88aed3f2001fdbc28ce0f11cc21dfcdc5906f Author: Sukchan Lee <acetcom@gmail.com> Date: Wed Nov 2 22:17:37 2022 +0900 update it commit b374db4e02e7dd153944f5a6fdc2a50c434dfa09 Author: Sukchan Lee <acetcom@gmail.com> Date: Wed Nov 2 22:05:53 2022 +0900 update it
2022-11-04 08:39:29 +00:00
command: /bin/bash -c "/root/setup.sh; cd /open5gs/build && /wait && meson test -v"
2018-02-20 10:36:34 +00:00
dev:
build:
2018-02-21 14:20:48 +00:00
context: ./${DIST-ubuntu}/${TAG-latest}/dev
2018-02-20 10:36:34 +00:00
args:
2018-02-21 14:20:48 +00:00
dist: ${DIST-ubuntu}
2018-02-20 10:36:34 +00:00
tag: ${TAG-latest}
username: ${USER}
image: ${USER}/${DIST-ubuntu}-${TAG-latest}-open5gs-dev
2018-02-20 10:36:34 +00:00
depends_on:
- mongodb
2018-02-21 15:18:31 +00:00
- base
2018-02-20 10:36:34 +00:00
environment:
- DB_URI=mongodb://mongodb/open5gs
2019-01-20 06:36:11 +00:00
- DISPLAY=$DISPLAY
# - DISPLAY=host.docker.internal:0
2018-02-20 10:36:34 +00:00
cap_add:
- NET_ADMIN
devices:
- "/dev/net/tun:/dev/net/tun"
sysctls:
- net.ipv6.conf.all.disable_ipv6=0
volumes:
2018-02-20 10:36:34 +00:00
- home:/home/${USER}
2018-02-21 03:35:05 +00:00
- ${HOME}:/mnt
# - /tmp/.X11-unix:/tmp/.X11-unix
2019-01-20 06:36:11 +00:00
# - /etc/localtime:/etc/localtime:ro
# - /usr/share/zoneinfo/Europe/Helsinki:/etc/localtime:ro
hostname: open5gs-dev
2018-05-02 13:11:02 +00:00
user: ${USER}
entrypoint: /bin/bash -c "/bin/bash -c \"$${@}\""
command: |
/bin/bash -c "
sudo chmod 666 /dev/net/tun
sudo /root/setup.sh
/bin/bash || exit 0
"
volumes:
2018-02-20 10:36:34 +00:00
mongodb: {}
home: {}
config: {}