-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (49 loc) · 1.14 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
version: '2.0'
services:
grafana:
image: grafana/grafana
container_name: grafana
restart: always
ports:
- 3000:3000
depends_on:
- influxdb
links:
- influxdb
environment:
- INFLUXDB_DB=pwutseltronics
- INFLUXDB_USER=telegraf
volumes:
- ./grafana/datasources/:/etc/grafana/provisioning/datasources/:ro
- ./grafana/dashboard-providers/:/etc/grafana/provisioning/dashboards/:ro
- ./grafana/dashboards/:/var/lib/grafana/dashboards/:ro
- ./grafana/data:/var/lib/grafana
influxdb:
image: influxdb
container_name: influxdb
restart: always
ports:
- 8086:8086
environment:
- INFLUXDB_DB=pwutseltronics
- INFLUXDB_USER=telegraf
volumes:
- ./influxdb/data:/var/lib/influxdb
telegraf:
image: telegraf
container_name: telegraf
restart: always
depends_on:
- influxdb
- mosquitto
links:
- influxdb
- mosquitto
volumes:
- ./telegraf.conf:/etc/telegraf/telegraf.conf:ro
mosquitto:
image: eclipse-mosquitto
container_name: mosquitto
restart: always
ports:
- 1883:1883