forked from herlesupreeth/docker_open5gs
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yaml
233 lines (233 loc) · 4.68 KB
/
docker-compose.yaml
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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
version: '3'
services:
dns:
build: ./dns
image: docker_open5gs_dns
container_name: dns
volumes:
- ./dns:/mnt/dns
expose:
- "53/udp"
networks:
default:
ipv4_address: ${DNS_IP}
mongo:
build: ./mongo
image: docker_open5gs_mongo
container_name: mongo
volumes:
- ./mongo:/mnt/mongo
- ./mongodb:/var/lib/mongodb
ports:
- "27017:27017"
networks:
default:
ipv4_address: ${MONGO_IP}
hss:
build: ./hss
image: docker_open5gs_hss
container_name: hss
volumes:
- ./hss:/mnt/hss
- ./log:/open5gs/install/var/log/open5gs
environment:
- MONGO_IP=${MONGO_IP}
- MME_IP=${MME_IP}
- DB_URI=mongodb://${MONGO_IP}/open5gs
depends_on:
- dns
- mongo
dns: ${DNS_IP}
ports:
- "3000:3000"
networks:
default:
ipv4_address: ${HSS_IP}
sgw:
build: ./sgw
image: docker_open5gs_sgw
container_name: sgw
volumes:
- ./sgw:/mnt/sgw
- ./log:/open5gs/install/var/log/open5gs
depends_on:
- dns
dns: ${DNS_IP}
ports:
- "2152:2152/udp"
networks:
default:
ipv4_address: ${SGW_IP}
pgw:
build: ./pgw
image: docker_open5gs_pgw
container_name: pgw
volumes:
- ./pgw:/mnt/pgw
- ./log:/open5gs/install/var/log/open5gs
environment:
- PCRF_IP=${PCRF_IP}
- DNS_IP=${DNS_IP}
- PCSCF_IP=${PCSCF_IP}
depends_on:
- dns
dns: ${DNS_IP}
cap_add:
- NET_ADMIN
devices:
- "/dev/net/tun"
sysctls:
- net.ipv4.ip_forward=1
networks:
default:
ipv4_address: ${PGW_IP}
mme:
build: ./mme
image: docker_open5gs_mme
depends_on:
- hss
- sgw
- pgw
container_name: mme
volumes:
- ./mme:/mnt/mme
- ./log:/open5gs/install/var/log/open5gs
depends_on:
- dns
dns: ${DNS_IP}
# ports:
# - "36412:36412/sctp"
environment:
- HSS_IP=${HSS_IP}
- SGW_IP=${SGW_IP}
- PGW_IP=${PGW_IP}
networks:
default:
ipv4_address: ${MME_IP}
pcrf:
build: ./pcrf
image: docker_open5gs_pcrf
container_name: pcrf
depends_on:
- mongo
- dns
dns: ${DNS_IP}
volumes:
- ./pcrf:/mnt/pcrf
- ./log:/open5gs/install/var/log/open5gs
environment:
- PGW_IP=${PGW_IP}
- MONGO_IP=${MONGO_IP}
- PCSCF_IP=${PCSCF_IP}
networks:
default:
ipv4_address: ${PCRF_IP}
mysql:
build: ./mysql
image: open5gs_mysql
container_name: mysql
volumes:
- ./mysql_db:/var/lib/mysql
- ./mysql:/mnt/mysql
networks:
default:
ipv4_address: ${MYSQL_IP}
rtpengine:
build: ./rtpengine
image: open5gs_rtpengine
privileged: true
container_name: rtpengine
volumes:
- ./rtpengine:/mnt/rtpengine
environment:
- RTPENGINE_IP=${RTPENGINE_IP}
networks:
default:
ipv4_address: ${RTPENGINE_IP}
pcscf:
build: ./pcscf
image: docker_open5gs_pcscf
container_name: pcscf
privileged: true
volumes:
- ./pcscf:/mnt/pcscf
depends_on:
- dns
- mysql
- pcrf
- rtpengine
environment:
- MYSQL_IP=${MYSQL_IP}
- PCSCF_IP=${PCSCF_IP}
- RTPENGINE_IP=${RTPENGINE_IP}
- PGW_IP=${PGW_IP}
dns: ${DNS_IP}
ports:
- "5060:5060/tcp"
- "5060:5060/udp"
networks:
default:
ipv4_address: ${PCSCF_IP}
icscf:
build: ./icscf
image: docker_open5gs_icscf
container_name: icscf
volumes:
- ./icscf:/mnt/icscf
depends_on:
- dns
- mysql
environment:
- MYSQL_IP=${MYSQL_IP}
- ICSCF_IP=${ICSCF_IP}
- FHOSS_IP=${FHOSS_IP}
dns: ${DNS_IP}
ports:
- "4060:4060/tcp"
- "4060:4060/udp"
networks:
default:
ipv4_address: ${ICSCF_IP}
scscf:
build: ./scscf
image: docker_open5gs_scscf
container_name: scscf
volumes:
- ./scscf:/mnt/scscf
depends_on:
- dns
- mysql
environment:
- MYSQL_IP=${MYSQL_IP}
- SCSCF_IP=${SCSCF_IP}
- FHOSS_IP=${FHOSS_IP}
dns: ${DNS_IP}
ports:
- "6060:6060/tcp"
- "6060:6060/udp"
networks:
default:
ipv4_address: ${SCSCF_IP}
fhoss:
build: ./fhoss
image: docker_open5gs_fhoss
container_name: fhoss
volumes:
- ./fhoss:/mnt/fhoss
depends_on:
- dns
- mysql
environment:
- MYSQL_IP=${MYSQL_IP}
- FHOSS_IP=${FHOSS_IP}
dns: ${DNS_IP}
ports:
- "8080:8080/tcp"
networks:
default:
ipv4_address: ${FHOSS_IP}
networks:
default:
ipam:
config:
- subnet: ${SUBNET}