open5gs/docker/docker-compose.yml

85 lines
1.9 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"
volumes:
- mongodb:/data/db
webui:
2018-02-20 10:36:34 +00:00
build: webui
image: ${USER}/open5gs-webui
container_name: open5gs-webui
2018-02-20 10:36:34 +00:00
depends_on:
- mongodb
ports:
- "3000:3000"
depends_on:
- mongodb
environment:
DB_URI: mongodb://mongodb/open5gs
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: ./build
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"
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: {}