mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-05 07:08:11 +00:00
change network configuration for docker
This commit is contained in:
parent
9a86d4cb7c
commit
f1ad0b11ae
5 changed files with 5 additions and 16 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue