-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (41 loc) · 1.05 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
version: "3"
services:
mqtt-to-prom:
image: mqtt-to-prom
ports:
- 1323:1323
restart: unless-stopped
depends_on:
- mosquitto
mosquitto:
image: eclipse-mosquitto
volumes:
- ./mqtt/:/mosquitto/:rw
ports:
- 1883:1883
- 9001:9001
restart: unless-stopped
prometheus:
image: prom/prometheus:latest
restart: unless-stopped
volumes:
- ./prometheus/config/prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
ports:
- 9090:9090
grafana:
image: grafana/grafana:latest
ports:
- 3000:3000
restart: unless-stopped
volumes:
- ./grafana/provisioning/datasources:/etc/grafana/provisioning/datasources
- ./grafana/dashboard.yaml:/etc/grafana/provisioning/dashboards/main.yaml
- ./grafana/dashboards:/var/lib/grafana/dashboards
- grafana_data:/var/lib/grafana
volumes:
prometheus_data: {}
grafana_data: {}