-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
49 lines (46 loc) · 1.01 KB
/
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
---
services:
snmp_exporter:
image: prom/snmp-exporter
container_name: snmp-exporter
ports:
- 9116:9116
volumes:
- ./config:/etc/snmp_exporter
restart: unless-stopped
networks:
frontend:
ipv4_address: 172.19.0.2
prometheus:
image: prom/prometheus:v2.53.3
container_name: prometheus
ports:
- "9090:9090"
volumes:
- ./prometheus:/etc/prometheus
- ./prometheus-data:/prometheus
command: "--config.file=/etc/prometheus/prometheus.yml"
restart: unless-stopped
depends_on:
- snmp_exporter
networks:
frontend:
ipv4_address: 172.19.0.3
grafana:
image: grafana/grafana-oss:11.3.0
container_name: grafana
ports:
- "3000:3000"
volumes:
- ./grafana-data:/var/lib/grafana
restart: unless-stopped
networks:
frontend:
ipv4_address: 172.19.0.4
networks:
frontend:
driver: bridge
ipam:
config:
- subnet: 172.19.0.0/16
gateway: 172.19.0.1