-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
128 lines (118 loc) · 3.02 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
version: '3'
services:
5gc:
container_name: open5gs_5gc
build:
context: open5gs
target: open5gs
args:
OS_VERSION: "22.04"
OPEN5GS_VERSION: "v2.7.0"
env_file:
- ${OPEN_5GS_ENV_FILE:-open5gs/open5gs.env}
privileged: true
ports:
- "9999:9999/tcp"
# Uncomment port to use the 5gc from outside the docker network
- "38412:38412/sctp"
# - "2152:2152/udp"
command: 5gc -c open5gs-5gc.yml
healthcheck:
test: [ "CMD-SHELL", "nc -z 127.0.0.20 7777" ]
interval: 3s
timeout: 1s
retries: 60
networks:
ran:
ipv4_address: ${OPEN5GS_IP:-10.53.1.2}
gnb:
container_name: srsran_gnb
image: srsran/gnb
build:
context: ..
dockerfile: docker/Dockerfile
args:
OS_VERSION: "24.04"
privileged: true
cap_add:
- SYS_NICE
- CAP_SYS_PTRACE
volumes:
- /usr/share/uhd/images:/usr/share/uhd/images
- gnb-storage:/tmp
- /home/lab3/srsRAN_Project-mai/srsRAN_Project-main/configs/gnb_rf_n310_fdd_n3_20mhz.yml:/gnb_config.yml
environment:
- UHD_DEVICE_ARGS="addr=192.168.40.3"
depends_on:
5gc:
condition: service_healthy
command: gnb -c /gnb_config.yml amf --addr ${OPEN5GS_IP:-10.53.1.2} --bind_addr ${GNB_IP:-10.53.1.3}
networks:
ran:
ipv4_address: ${GNB_IP:-10.53.1.3}
metrics-server:
container_name: metrics_server
image: srsran/metrics_server
build:
context: metrics_server
environment:
- PORT=${METRICS_SERVER_PORT}
- BUCKET=${DOCKER_INFLUXDB_INIT_BUCKET}
- TESTBED=default
- URL=http://${DOCKER_INFLUXDB_INIT_HOST}:${DOCKER_INFLUXDB_INIT_PORT}
- ORG=${DOCKER_INFLUXDB_INIT_ORG}
- TOKEN=${DOCKER_INFLUXDB_INIT_ADMIN_TOKEN}
ports:
- 55555:${METRICS_SERVER_PORT}/udp
networks:
metrics:
ipv4_address: 172.19.1.4
influxdb:
container_name: influxdb
image: influxdb:${DOCKER_INFLUXDB_VERSION}
volumes:
- influxdb-storage:/var/lib/influxdb2:rw
env_file:
- .env
restart: on-failure:10
# Uncomment port section to access InfluxDB from outside the docker network
# ports:
# - 8086:${DOCKER_INFLUXDB_INIT_PORT}
networks:
metrics:
ipv4_address: 172.19.1.5
grafana:
container_name: grafana
image: srsran/grafana
build:
context: grafana
volumes:
- grafana-storage:/var/lib/grafana:rw
env_file:
- .env
depends_on:
- influxdb
- metrics-server
ports:
- 3300:${GRAFANA_PORT}
networks:
metrics:
ipv4_address: 172.19.1.6
configs:
gnb_config.yml:
file: /home/lab3/srsRAN_Project-mai/srsRAN_Project-main/configs/gnb_rf_n310_fdd_n3_20mhz.yml # Path to your desired config file
volumes:
gnb-storage:
grafana-storage:
influxdb-storage:
networks:
ran:
ipam:
driver: default
config:
- subnet: 10.53.1.0/24
metrics:
ipam:
driver: default
config:
- subnet: 172.19.1.0/24