forked from zottelbeyer/QNAP-collectdinfluxdbgrafana
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (41 loc) · 1.37 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
version: '3'
services:
collectd:
container_name: qnap-collectd
image: zottelbeyer/qnap-collectd:latest
privileged: true
network_mode: host
volumes:
- /:/rootfs/:ro
- ./qnap-collectd/collectd.conf.d:/etc/collectd/collectd.conf.d/:ro
restart: always
influxdb:
container_name: influxdb
image: influxdb:1.8
ports:
- "8086:8086"
- "25826:25826/udp"
environment:
INFLUXDB_USER: ${INFLUXDB_USERNAME}
INFLUXDB_USER_PASSWORD: ${INFLUXDB_PASSWORD}
INFLUXDB_DB: ${INFLUXDB_DATABASE}
volumes:
- ./influxdb/influxdb.conf:/etc/influxdb/influxdb.conf
- ./influxdb/types.db:/usr/share/collectd/types.db
- ./influxdb-data:/var/lib/influxdb
restart: always
grafana:
container_name: grafana
image: grafana/grafana:7.3.7
user: "root"
environment:
GF_SECURITY_ADMIN_USER: ${GF_SECURITY_ADMIN_USER}
GF_SECURITY_ADMIN_PASSWORD: ${GF_SECURITY_ADMIN_PASSWORD}
ports:
- "3000:3000"
volumes:
- ./grafana/datasource.yaml:/etc/grafana/provisioning/datasources/datasource.yaml
- ./grafana/dashboard.yaml:/etc/grafana/provisioning/dashboards/dashboard.yaml
- ./grafana/QNAP-collectd.json:/var/lib/grafana/dashboards/QNAP-collectd.json
- ./grafana-data:/var/lib/grafana
restart: always