-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdocker-compose.yml
47 lines (40 loc) · 911 Bytes
/
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
version: "3"
networks:
public: {}
volumes:
grafana_data: {}
prometheus_data: {}
services:
prometheus:
image: prom/prometheus
ports:
- 9990:9090
networks:
- public
volumes:
- prometheus_data:/prometheus
- ./prometheus/:/etc/prometheus/
command:
- '--config.file=/etc/prometheus/prometheus.yml'
depends_on:
- snmp-exporter
snmp-exporter:
image: prom/snmp-exporter
volumes:
- ./snmp_generator/snmp.yml:/etc/snmp_exporter/snmp.yml
networks:
- public
grafana:
image: grafana/grafana
ports:
- "3110:3000"
networks:
- public
volumes:
- grafana_data:/var/lib/grafana
- ./grafana/provisioning/:/etc/grafana/provisioning/
depends_on:
- prometheus
environment:
GF_SECURITY_ADMIN_PASSWORD: ${GF_SECURITY_ADMIN_PASSWORD}
GF_USERS_ALLOW_SIGN_UP: "false"