-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
51 lines (45 loc) · 1.13 KB
/
docker-compose.yaml
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
version: '3'
volumes:
prometheus_data:
name: prometheus_data
driver: local
grafana_data:
name: grafana_data
driver: local
networks:
monitoring:
external: true
services:
prometheus:
container_name: prometheus
image: prom/prometheus
restart: unless-stopped
volumes:
- './config/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml'
- 'prometheus_data:/prometheus'
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
networks:
- monitoring
ports:
- 9090:9090
snmp_exporter:
container_name: snmp_exporter
image: prom/snmp-exporter
restart: unless-stopped
networks:
- monitoring
grafana:
container_name: grafana
image: grafana/grafana
restart: unless-stopped
volumes:
- 'grafana_data:/var/lib/grafana'
- './config/grafana:/etc/grafana/provisioning/datasources'
networks:
- monitoring
ports:
- 3000:3000