-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-compose.yml
57 lines (52 loc) · 1.28 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
version: '3.2'
services:
snmp_exporter_generator:
container_name: snmp_exporter_generator
build: './snmp_exporter_generator'
volumes:
- './snmp_exporter_generator/mibs:/root/.snmp/mibs'
- './snmp_exporter_generator/generator.yml:/opt/generator.yml'
- './snmp_exporter/:/opt/'
snmpsim:
container_name: snmpsim
build: './snmpsim'
ports:
- "161:161/udp"
volumes:
- './snmpsim/snmpwalks:/data'
snmp_exporter:
container_name: snmp_exporter
image: prom/snmp-exporter
ports:
- "9116:9116"
depends_on:
- snmp_exporter_generator
volumes:
- "./snmp_exporter/snmp.yml:/etc/snmp_exporter/snmp.yml"
prometheus:
container_name: prometheus
image: prom/prometheus
user: "65534"
ports:
- "9090:9090"
depends_on:
- snmp_exporter
volumes:
- 'prometheus_data:/prometheus'
- './prometheus/config:/etc/prometheus'
grafana:
container_name: grafana
image: grafana/grafana
user: "472"
ports:
- "3000:3000"
depends_on:
- prometheus
env_file:
- ./grafana/config.monitoring
volumes:
- './grafana/provisioning/:/etc/grafana/provisioning/'
- 'grafana_data:/var/lib/grafana'
volumes:
prometheus_data: {}
grafana_data: {}