-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
55 lines (51 loc) · 953 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
version: '3'
services:
free5gc:
build:
context: .
dockerfile: Dockerfile
container_name: free5gc
command: |
/bin/bash -c "
chmod 666 /dev/net/tun
/root/uptun_setup.sh
/bin/bash || exit 0
sleep infinity
"
privileged: true
volumes:
- "./free5gc:/go/free5gc"
cap_add:
- NET_ADMIN
devices:
- "/dev/net/tun:/dev/net/tun"
sysctls:
- net.ipv6.conf.all.disable_ipv6=0
environment:
DB_URI: mongodb://db/free5gc
networks:
- privnet
- untrust
depends_on:
- db
db:
image: mongo
container_name: mongodb
command: mongod
expose:
- "27017"
networks:
- privnet
volumes:
- ./mongodb:/data/db
networks:
privnet:
driver: bridge
ipam:
config:
- subnet: 10.5.0.0/24
untrust:
driver: bridge
ipam:
config:
- subnet: 192.168.5.0/24