forked from ravens/docker-nextepc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-allinone-epc.yml
121 lines (108 loc) · 2.24 KB
/
docker-compose-allinone-epc.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
version: '2'
volumes:
mongodb_data:
networks:
core_network:
#enable_ipv6: true
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.26.0/24
gateway: 192.168.26.1
# - subnet: 200 networks:1:1001:26::/64
# gateway: 2001:1001:26::1
services:
mongodb:
image: mongo:latest
container_name: "mongodb"
volumes:
- mongodb_data:/data/db
hostname: mongodb
networks:
core_network:
ipv4_address: 192.168.26.5
webui:
build: ./
depends_on:
- mongodb
environment:
- DB_URI=mongodb://mongodb/nextepc
container_name: webui
hostname: webui
ports:
- "3000:3000"
volumes:
- "./config-allinone:/etc/nextepc"
entrypoint:
- "/bin/sh"
- "/etc/nextepc/run_webui.sh"
networks:
core_network:
ipv4_address: 192.168.26.6
mongodbloader:
image: mongo:latest
depends_on:
- webui
environment:
- DB_HOST=mongodb
volumes:
- "./provisioning/db/run_db.sh:/tmp/run.sh"
- "./provisioning/db/imsi1.json:/tmp/imsi1.json"
entrypoint:
- /bin/sh
- /tmp/run.sh
networks:
core_network:
ipv4_address: 192.168.26.19
epc:
build: ./
depends_on:
- mongodb
container_name: epc
hostname: epc
entrypoint:
- "/bin/sh"
- "/etc/nextepc/run_epc.sh"
volumes:
- "./config-allinone:/etc/nextepc"
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun
networks:
core_network:
ipv4_address: 192.168.26.20
enb:
build: ./virtual-UE-eNB
container_name: enb
depends_on:
- epc
ipc: shareable
cap_add:
- SYS_NICE
networks:
core_network:
ipv4_address: 192.168.26.60
volumes:
- ./virtual-UE-eNB/run_enb.sh:/root/run_enb.sh
entrypoint:
- /bin/sh
- /root/run_enb.sh
ue:
container_name: ue
build: ./virtual-UE-eNB
ipc: "container:enb"
cap_add:
- NET_ADMIN
- SYS_NICE
devices:
- /dev/net/tun
network_mode: "none"
depends_on:
- enb
volumes:
- ./virtual-UE-eNB/run_ue.sh:/root/run_ue.sh
entrypoint:
- /bin/sh
- /root/run_ue.sh