-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (52 loc) · 1.08 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
version: '3'
services:
prometheus:
image: prom/prometheus
container_name: prometheus
ports:
- "9090:9090"
volumes:
- ./config:/etc/prometheus/
networks:
- monitoring_network
node-exporter:
image: prom/node-exporter:latest
container_name: node-exporter
command:
- '--path.rootfs=/host'
ports:
- "9100:9100"
pid: host
restart: unless-stopped
networks:
- monitoring_network
grafana:
build: .
image: melvin-grafana
container_name: grafana
restart: unless-stopped
env_file: ".env"
ports:
- '3030:3030'
volumes:
- 'grafana_storage:/var/lib/grafana'
networks:
- monitoring_network
dcgm-exporter:
image: nvcr.io/nvidia/k8s/dcgm-exporter
container_name: dcgm-exporter
ports:
- "9400:9400"
deploy:
resources:
reservations:
devices:
- driver: nvidia
capabilities: [gpu]
networks:
- monitoring_network
networks:
monitoring_network:
driver: bridge
volumes:
grafana_storage: { }