forked from bcremer/docker-telegraf-influx-grafana-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (37 loc) · 867 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: '3.6'
services:
telegraf:
image: telegraf:1.18-alpine
volumes:
- ./telegraf/etc/telegraf.conf:/etc/telegraf/telegraf.conf:ro
depends_on:
- influxdb
links:
- influxdb
ports:
- '127.0.0.1:8125:8125/udp'
influxdb:
image: influxdb:2.6-alpine
env_file: configuration.env
ports:
- '127.0.0.1:8086:8086'
volumes:
- ./:/imports
- influxdb_data:/var/lib/influxdb
grafana:
image: grafana/grafana:8.2.6
depends_on:
- influxdb
env_file: configuration.env
links:
- influxdb
ports:
- '127.0.0.1:3000:3000'
- '0.0.0.0:9094:9094'
volumes:
- grafana_data:/var/lib/grafana
- ./grafana/provisioning/:/etc/grafana/provisioning/
- ./grafana/dashboards/:/var/lib/grafana/dashboards/
volumes:
grafana_data: {}
influxdb_data: {}