-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (50 loc) · 1.26 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
version: '3.8'
services:
rel:
image: ghcr.io/elixir-webrtc/rel:${TAG}
container_name: rel
restart: on-failure
network_mode: host
environment:
REALM: "${REALM}"
node-exporter:
image: prom/node-exporter:v1.6.1
container_name: node_exporter
restart: on-failure
command:
- --path.rootfs=/host
network_mode: host
pid: host
volumes:
- /:/host:ro,rslave
prometheus:
image: prom/prometheus:v2.46.0
container_name: prometheus
restart: on-failure
network_mode: host
command:
- --config.file=/etc/prometheus/prometheus.yml
- --web.listen-address=127.0.0.1:9090
- --storage.tsdb.path=/prometheus
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
- prometheus_data:/prometheus
depends_on:
- rel
- node-exporter
grafana:
image: grafana/grafana:10.0.3
container_name: grafana
restart: on-failure
network_mode: host
volumes:
- grafana_data:/var/lib/grafana
- ./grafana/:/etc/grafana/
depends_on:
- prometheus
environment:
GF_SECURITY_ADMIN_PASSWORD: "${GF_SECURITY_ADMIN_PASSWORD}"
GF_SECURITY_ADMIN_USER: "${GF_SECURITY_ADMIN_USER}"
volumes:
grafana_data: {}
prometheus_data: {}