change network configuration for docker

This commit is contained in:
Sukchan Lee 2018-02-20 22:29:46 +09:00
parent 9a86d4cb7c
commit f1ad0b11ae
5 changed files with 5 additions and 16 deletions

View file

@ -2,13 +2,11 @@ version: '3'
services:
run:
# network_mode: "host"
network_mode: "host"
image: ${USER}/${DIST-ubuntu}-${TAG-latest}-build
depends_on:
- mongodb
- build
environment:
DB_URI: mongodb://mongodb/nextepc
cap_add:
- NET_ADMIN
devices:
@ -17,4 +15,4 @@ services:
- net.ipv6.conf.all.disable_ipv6=0
- net.ipv6.conf.all.forwarding=1
hostname: nextepc-run
command: /bin/bash -c "/etc/init.d/networking start; sed 's|localhost|mongodb|' /usr/local/etc/nextepc/nextepc.conf > /tmp/nextepc.conf; mv -f /tmp/nextepc.conf /usr/local/etc/nextepc/; /usr/local/bin/nextepc-epcd"
command: /bin/bash -c "/root/setup.sh; /usr/local/bin/nextepc-epcd"