forked from janvda/balena-node-red-mqtt-nginx-TIG-stack
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
40 lines (37 loc) · 912 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
version: '2'
services:
telegraf:
image: telegraf
pid: "host"
network_mode: "host"
privileged: true
depends_on:
- influxdb
restart: always
environment:
- interval=60s
- flush_interval=60s
volumes:
- ./telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
- /var/run/docker.sock:/var/run/docker.sock
influxdb:
image: influxdb
ports:
- "8082:8082"
- "8086:8086"
- "8089:8089"
restart: always
volumes:
- ./influxdb/influxdb.conf:/etc/influxdb/influxdb.conf:ro
- ./influxdb/data:/mnt/influxdb
grafana:
image: grafana/grafana
ports:
- "3000:3000"
depends_on:
- influxdb
restart: always
volumes:
- ./grafana/config.ini:/etc/grafana/config.ini:ro
- ./grafana/provisioning:/etc/grafana/provisioning
- ./grafana/dashboards:/var/lib/grafana/dashboards