forked from cristianpb/telegraf-influxdb-grafana-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
40 lines (38 loc) · 1.23 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
version: '2.3'
services:
telegraf:
image: telegraf
runtime: nvidia
environment:
- NVIDIA_VISIBLE_DEVICES=all
- HOST_PROC=/host/proc
privileged: true
network_mode: host
volumes:
- /proc:/host/proc:ro
- ./docker/telegraf/telegraf.conf:/etc/telegraf/telegraf.conf
- /var/run/docker.sock:/var/run/docker.sock
- /var/run/utmp:/var/run/utmp
influxdb:
image: influxdb:1.4
ports:
- "8086:8086"
- "25826:25826/udp"
environment:
INFLUXDB_USER: ${INFLUXDB_USERNAME}
INFLUXDB_USER_PASSWORD: ${INFLUXDB_PASSWORD}
INFLUXDB_DB: ${INFLUXDB_DATABASE}
volumes:
- ./docker/influxdb/influxdb.conf:/etc/influxdb/influxdb.conf
grafana:
image: grafana/grafana:5.1.1
user: "root"
environment:
GF_SECURITY_ADMIN_USER: ${GF_SECURITY_ADMIN_USER}
GF_SECURITY_ADMIN_PASSWORD: ${GF_SECURITY_ADMIN_PASSWORD}
ports:
- "3000:3000"
volumes:
- ./docker/grafana/datasource.yaml:/etc/grafana/provisioning/datasources/datasource.yaml
- ./docker/grafana/dashboard.yaml:/etc/grafana/provisioning/dashboards/dashboard.yaml
- ./docker/grafana/DashboardTelegraf.json:/var/lib/grafana/dashboards/DashboardTelegraf.json