forked from ravens/docker-nextepc
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
195 lines (180 loc) · 3.72 KB
/
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
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
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:/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
hss:
build: ./
depends_on:
- mongodb
container_name: hss
hostname: hss
entrypoint:
- "/bin/sh"
- "/etc/nextepc/run_hss.sh"
volumes:
- "./config:/etc/nextepc"
networks:
core_network:
ipv4_address: 192.168.26.10
mme:
build: ./
depends_on:
- hss
container_name: mme
hostname: mme
entrypoint:
- "/bin/sh"
- "/etc/nextepc/run_mme.sh"
volumes:
- "./config:/etc/nextepc"
networks:
core_network:
ipv4_address: 192.168.26.20
sgw:
build: ./
container_name: sgw
hostname: sgw
entrypoint:
- "/bin/sh"
- "/etc/nextepc/run_sgw.sh"
volumes:
- "./config:/etc/nextepc"
networks:
core_network:
ipv4_address: 192.168.26.30
pgw:
build: ./
container_name: pgw
hostname: pgw
entrypoint:
- "/bin/sh"
- "/etc/nextepc/run_pgw.sh"
volumes:
- "./config:/etc/nextepc"
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun
networks:
core_network:
ipv4_address: 192.168.26.40
pcrf:
build: ./
depends_on:
- mongodb
- hss
container_name: pcrf
hostname: pcrf
entrypoint:
- "/bin/sh"
- "/etc/nextepc/run_pcrf.sh"
volumes:
- "./config:/etc/nextepc"
networks:
core_network:
ipv4_address: 192.168.26.50
enb:
build: ./virtual-UE-eNB
container_name: enb
depends_on:
- mme
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
ue1:
container_name: ue1
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_ue1.sh:/root/run_ue.sh
- ./virtual-UE-eNB/route_ue.sh:/root/route_ue.sh
entrypoint:
- /bin/sh
- /root/run_ue.sh
ue2:
container_name: ue2
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_ue2.sh:/root/run_ue.sh
- ./virtual-UE-eNB/route_ue.sh:/root/route_ue.sh
entrypoint:
- /bin/sh
- /root/run_ue.sh