forked from free5gc/free5gc-compose
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.override.yml
120 lines (109 loc) · 2.57 KB
/
docker-compose.override.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
version: '3.8'
services:
edgecom-nat:
container_name: nat
build:
context: ./nat
sysctls:
- net.ipv4.conf.all.forwarding=1
cap_add:
- NET_ADMIN
networks:
privnet:
aliases:
- nat.free5gc.org
privnet_n6:
aliases:
- natn6.free5gc.org
free5gc-upf:
command: echo 'stop'
free5gc-smf:
depends_on:
- edgecom-upf
ueransim:
image: free5gc/ueransim:v3.3.0
depends_on:
- edgecom-upf
edgecom-upf:
container_name: eupf
image: ghcr.io/edgecomllc/eupf:0046d85093bac22c995979083ee7a946398767ac
#image: eupf-local:latest
privileged: true
command: --iface eth0 --iface eth1 --n3addr 10.100.200.14 --nodeid 10.100.200.14 --paddr 10.100.200.14:8805 --attach generic
volumes:
- /sys/fs/bpf:/sys/fs/bpf
- ./eupf/entrypoint.sh:/app/bin/entrypoint.sh
environment:
GIN_MODE: release
ulimits:
memlock: -1
cap_add:
# Granular caps support depends on kernel version
# - BPF
## - TRACING
# - PERFMON
- NET_ADMIN
- SYS_ADMIN
- SYS_RESOURCE # setrlimit
ports:
- "8080:8080"
- "9090:9090"
sysctls:
- net.ipv4.conf.all.forwarding=1
networks:
privnet_n6:
aliases:
- upfn6.free5gc.org
privnet:
ipv4_address: 10.100.200.14
aliases:
- upf.free5gc.org
prometheus:
image: prom/prometheus
container_name: prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
ports:
- 9091:9090
restart: unless-stopped
volumes:
- ./prometheus:/etc/prometheus
- prom_data:/prometheus
networks:
privnet:
grafana:
image: grafana/grafana
container_name: grafana
ports:
- 3000:3000
restart: unless-stopped
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=grafana
volumes:
- ./grafana/provisioning:/etc/grafana/provisioning
- ./grafana/dashboards:/etc/grafana/dashboards
networks:
privnet:
edgecom-upf-ui:
container_name: ui
image: ghcr.io/edgecomllc/eupf-ui:74adead324e00eb83f97adfec40c7188c5f57a4a
command: >
sh -c "
sed -i 's#__API_PORT__#'\"$$API_PORT\"'#g' /usr/share/nginx/html/env.js
&& nginx -g 'daemon off;'
"
ports:
- "8081:80"
environment:
- API_PORT=8080
networks:
privnet_n6:
ipam:
driver: default
config:
- subnet: 10.100.250.0/24
driver_opts:
com.docker.network.bridge.name: br-free5gc-n6
volumes:
prom_data: