-
Notifications
You must be signed in to change notification settings - Fork 7
/
compose-with-metrics.yml
57 lines (50 loc) · 1.18 KB
/
compose-with-metrics.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
version: "3.8"
volumes:
shared-logs: { }
prometheus-data: { }
grafana-data: { }
services:
valheim:
container_name: "valheim_vanilla"
image: "adaliszk/valheim-server:latest"
environment:
SERVER_NAME: "My Valheim Server"
SERVER_PASSWORD: "super!secret"
volumes:
- shared-logs:/logs
ports:
- 2456:2456/udp
- 2457:2457/udp
metrics-exporter:
container_name: "metrics_exporter"
image: "adaliszk/valheim-server-monitoring:metrics"
volumes:
- shared-logs:/logs:ro
ports:
- 3903:3903
docker-exporter:
container_name: "docker_exporter"
image: "prometheusnet/docker_exporter:latest"
volumes:
- //var/run/docker.sock:/var/run/docker.sock:ro
ports:
- 3417:9417
prometheus:
container_name: "prometheus"
image: "adaliszk/valheim-server-monitoring:prometheus"
links:
- metrics-exporter
- docker-exporter
volumes:
- prometheus-data:/prometheus
ports:
- 3090:9090
grafana:
container_name: "grafana"
image: "grafana/grafana:latest"
depends_on:
- prometheus
volumes:
- grafana-data:/var/lib/grafana
ports:
- 3000:3000