open5gs/support/docker/docker-compose.yml

83 lines
1.8 KiB
YAML
Raw Normal View History

version: '3'
services:
2018-02-20 10:36:34 +00:00
mongodb:
image: mongo
container_name: nextepc-mongodb
ports:
- "27017:27017"
volumes:
- mongodb:/data/db
webui:
2018-02-20 10:36:34 +00:00
build: webui
image: ${USER}/nextepc-webui
container_name: nextepc-webui
depends_on:
- mongodb
ports:
- "3000:3000"
depends_on:
- mongodb
environment:
DB_URI: mongodb://mongodb/nextepc
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}
2018-05-29 08:41:11 +00:00
image: ${USER}/${DIST-ubuntu}-${TAG-latest}-nextepc-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}
2018-05-29 08:41:11 +00:00
image: ${USER}/${DIST-ubuntu}-${TAG-latest}-nextepc-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}
2018-05-29 08:41:11 +00:00
image: ${USER}/${DIST-ubuntu}-${TAG-latest}-nextepc-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:
2018-05-29 02:15:18 +00:00
- DB_URI=mongodb://mongodb/nextepc
- DISPLAY=docker.for.mac.localhost: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
2018-05-29 02:15:18 +00:00
- /tmp/.X11-unix:/tmp/.X11-unix
2018-11-13 01:03:24 +00:00
- /etc/localtime:/etc/localtime:ro
2018-02-20 10:36:34 +00:00
hostname: nextepc-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: {}