forked from ravens/docker-nextepc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-allinone-epc-physical-eNB.yml
98 lines (89 loc) · 1.99 KB
/
docker-compose-allinone-epc-physical-eNB.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
version: '2'
volumes:
mongodb_data:
networks:
core_network:
driver: bridge
driver_opts:
com.docker.network.bridge.name: br-lab
ipam:
driver: default
config:
- subnet: 192.168.26.0/24
gateway: 192.168.26.1
services:
# provides an IP address to the eNB attached to the br-lab bridge
dhcp:
build: ./services/dhcp
container_name: dhcp
hostname: dhcp
restart: on-failure
cap_add:
- NET_ADMIN
volumes:
- "./services/dhcp/dnsmasq.conf:/root/dnsmasq.conf"
- "./services/dhcp/run.sh:/root/run.sh"
networks:
core_network:
ipv4_address: 192.168.26.2
mongodb:
image: mongo:latest
container_name: "mongodb"
volumes:
- mongodb_data:/data/db
hostname: mongodb
restart: on-failure
networks:
core_network:
ipv4_address: 192.168.26.5
webui:
build: ./
depends_on:
- mongodb
environment:
- DB_URI=mongodb://mongodb/nextepc
container_name: webui
restart: on-failure
hostname: webui
volumes:
- "./config-allinone-physical-eNB:/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
volumes:
- "./provisioning/db/run_db.sh:/tmp/run.sh"
- "./provisioning/db/imsi1-physical-eNB.json:/tmp/imsi1.json"
environment:
- DB_HOST=mongodb
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
restart: on-failure
entrypoint:
- "/bin/sh"
- "/etc/nextepc/run_epc.sh"
volumes:
- "./config-allinone-physical-eNB:/etc/nextepc"
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun
networks:
core_network:
ipv4_address: 192.168.26.20