open5gs/support/docker/docker-compose.yml

72 lines
1.4 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:
context: ./${DIST-ubuntu}/base
args:
tag: ${TAG-latest}
image: ${USER}/${DIST-ubuntu}-${TAG-latest}-base
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}-build
depends_on:
- base
command: /bin/bash -c "echo 'build' services"
dev:
build:
context: ./${DIST-ubuntu}/dev
args:
tag: ${TAG-latest}
username: ${USER}
image: ${USER}/${DIST-ubuntu}-${TAG-latest}-dev
depends_on:
- mongodb
- base
environment:
DB_URI: mongodb://mongodb/nextepc
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-02-20 10:36:34 +00:00
hostname: nextepc-dev
command: /bin/bash -c "chmod 666 /dev/net/tun; /root/setup.sh; su acetcom"
volumes:
2018-02-20 10:36:34 +00:00
mongodb: {}
home: {}