-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
194 lines (181 loc) · 3.71 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
194
version: '2.1'
networks:
core_network:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.19.0.0/16
gateway: 172.19.0.1
services:
mongodb:
image: mongo:latest
container_name: "mongodb"
hostname: mongodb
networks:
core_network:
ipv4_address: ${mongodb_ip}
webui:
container_name: webui
image: j0lama/free5gc-webui
depends_on:
- mongodb
environment:
- DB_URI=mongodb://mongodb/free5gc
hostname: webui
ports:
- '80:3000'
entrypoint:
- "/bin/sh"
- "/etc/free5gc/run_webui.sh"
networks:
core_network:
ipv4_address: ${webui_ip}
mongodbloader:
image: mongo:latest
depends_on:
- webui
environment:
- DB_HOST=mongodb
volumes:
- "./db:/tmp"
entrypoint:
- "/bin/sh"
- "/tmp/mongodb_loader.sh"
networks:
core_network:
ipv4_address: ${mongodbloader_ip}
hss:
container_name: hss
image: j0lama/free5gc-base
depends_on:
- mongodb
hostname: hss
entrypoint:
- "/bin/sh"
- "/etc/free5gc/run_hss.sh"
- "${mongodb_ip}"
- "${hss_ip}"
- "${amf_ip}"
networks:
core_network:
ipv4_address: ${hss_ip}
amf:
container_name: amf
image: j0lama/free5gc-base
depends_on:
- hss
hostname: amf
entrypoint:
- "/bin/sh"
- "/etc/free5gc/run_amf.sh"
- "${mongodb_ip}"
- "${hss_ip}"
- "${amf_ip}"
- "${smf_ip}"
networks:
core_network:
ipv4_address: ${amf_ip}
smf:
container_name: smf
image: j0lama/free5gc-base
depends_on:
- amf
hostname: smf
entrypoint:
- "/bin/sh"
- "/etc/free5gc/run_smf.sh"
- "${smf_ip}"
- "${upf_ip}"
- "${pcrf_ip}"
- "${smf_ip}"
networks:
core_network:
ipv4_address: ${smf_ip}
pcrf:
container_name: pcrf
image: j0lama/free5gc-base
depends_on:
- smf
hostname: pcrf
entrypoint:
- "/bin/sh"
- "/etc/free5gc/run_pcrf.sh"
- "${mongodb_ip}"
- "${smf_ip}"
- "${pcrf_ip}"
networks:
core_network:
ipv4_address: ${pcrf_ip}
upf:
container_name: upf
image: j0lama/free5gc-base
depends_on:
- pcrf
hostname: upf
entrypoint:
- "/bin/sh"
- "/etc/free5gc/run_upf.sh"
- "${upf_ip}"
cap_add:
- NET_ADMIN
devices:
- "/dev/net/tun:/dev/net/tun"
sysctls:
- net.ipv6.conf.all.disable_ipv6=0
networks:
core_network:
ipv4_address: ${upf_ip}
enb:
image: kannan1981/enb_latest:latest
hostname: enb
depends_on:
- upf
container_name: enb
privileged: true
volumes:
- /dev/bus/usb:/dev/bus/usb
- ./conf/enb.10MHz.b200:/home/opencells-mods/enb.10MHz.b200
command: ['./docker-entrypoint.sh']
entrypoint:
- /bin/bash
networks:
core_network:
ipv4_address: ${enb_ip}
tty: true
# enb:
# build: ./virtual-UE-eNB
# container_name: enb
# depends_on:
# - upf
# ipc: shareable
# cap_add:
# - SYS_NICE
# networks:
# core_network:
# ipv4_address: ${enb_ip}
# volumes:
# - ./virtual-UE-eNB/run_enb.sh:/root/run_enb.sh
# entrypoint:
# - "/bin/sh"
# - "/root/run_enb.sh"
# - "${amf_ip}"
# - "${enb_ip}"
#
# 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"