-
Notifications
You must be signed in to change notification settings - Fork 19
/
docker-compose-fauxrf.yml
174 lines (160 loc) · 3.29 KB
/
docker-compose-fauxrf.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
version: '2'
volumes:
mongodb_data:
networks:
core_network:
driver: bridge
driver_opts:
com.docker.network.bridge.name: networkinabox
ipam:
driver: default
config:
- subnet: 192.168.26.0/24
gateway: 192.168.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/open5gs
container_name: webui
hostname: webui
ports:
- "3000:3000"
volumes:
- "./config:/usr/local/etc:z"
entrypoint:
- "/bin/sh"
- "/usr/local/etc/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:z"
- "./provisioning/db/imsi1.json:/tmp/imsi1.json:z"
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"
- "/usr/local/etc/run_hss.sh"
volumes:
- "./config:/usr/local/etc:z"
networks:
core_network:
ipv4_address: 192.168.26.10
mme:
build: ./
depends_on:
- hss
container_name: mme
hostname: mme
entrypoint:
- "/bin/sh"
- "/usr/local/etc/run_mme.sh"
volumes:
- "./config:/usr/local/etc:z"
networks:
core_network:
ipv4_address: 192.168.26.20
sgw:
build: ./
container_name: sgw
hostname: sgw
entrypoint:
- "/bin/sh"
- "/usr/local/etc/run_sgw.sh"
volumes:
- "./config:/usr/local/etc:z"
networks:
core_network:
ipv4_address: 192.168.26.30
pgw:
build: ./
container_name: pgw
hostname: pgw
entrypoint:
- "/bin/sh"
- "/usr/local/etc/run_pgw.sh"
volumes:
- "./config:/usr/local/etc:z"
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"
- "/usr/local/etc/run_pcrf.sh"
volumes:
- "./config:/usr/local/etc:z"
networks:
core_network:
ipv4_address: 192.168.26.50
enb:
build: ./srsLTE-fauxRF
container_name: enb
depends_on:
- mme
ipc: shareable
cap_add:
- SYS_NICE
networks:
core_network:
ipv4_address: 192.168.26.60
volumes:
- ./srsLTE-fauxRF/run_enb.sh:/root/run_enb.sh:z
entrypoint:
- /bin/sh
- /root/run_enb.sh
ue:
container_name: ue
build: ./srsLTE-fauxRF
ipc: "container:enb"
cap_add:
- NET_ADMIN
- SYS_NICE
devices:
- /dev/net/tun
network_mode: "none"
depends_on:
- enb
volumes:
- ./srsLTE-fauxRF/run_ue.sh:/root/run_ue.sh:z
entrypoint:
- /bin/sh
- /root/run_ue.sh