66 lines
1.7 KiB
YAML
66 lines
1.7 KiB
YAML
|
|
services:
|
|
grafana:
|
|
image: grafana/grafana:latest
|
|
restart: always
|
|
user: "1000"
|
|
ports:
|
|
- "8082:3000"
|
|
volumes:
|
|
- ./data/grafana:/var/lib/grafana
|
|
- ./data/grafana/plugins:/var/lib/grafana/plugins
|
|
- ./data/grafana/provisioning:/etc/grafana/provisioning
|
|
environment:
|
|
GF_INSTALL_PLUGINS: grafana-clock-panel,grafana-simple-json-datasource
|
|
GF_SECURITY_ADMIN_PASSWORD: pass
|
|
GF_RENDERING_SERVER_URL: http://192.168.1.24:8086/render
|
|
GF_RENDERING_CALLBACK_URL: http://192.168.1.24:8082/
|
|
GF_LOG_FILTERS: rendering:debug
|
|
depends_on:
|
|
- prometheus
|
|
- grafana-renderer
|
|
- local_data_exporter
|
|
|
|
grafana-renderer:
|
|
image: grafana/grafana-image-renderer:latest
|
|
environment:
|
|
BROWSER_TZ: Asia/Taipei
|
|
ports:
|
|
- '8086:8081'
|
|
|
|
prometheus:
|
|
image: prom/prometheus:latest
|
|
user: "1000:1000"
|
|
restart: always
|
|
command:
|
|
- --storage.tsdb.retention.time=36500d
|
|
- --config.file=/etc/prometheus/prometheus.yml
|
|
- --storage.tsdb.path=/prometheus
|
|
ports:
|
|
- "8083:9090"
|
|
volumes:
|
|
- ./data/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
|
|
- ./data/prometheus/data:/prometheus
|
|
|
|
node_exporter:
|
|
image: prom/node-exporter:latest
|
|
restart: always
|
|
volumes:
|
|
- /:/host:ro,rslave
|
|
command:
|
|
- --path.rootfs=/host
|
|
ports:
|
|
- "8084:9100"
|
|
|
|
local_data_exporter:
|
|
privileged: true
|
|
image: awin/sensors:latest
|
|
restart: always
|
|
ports:
|
|
- "8087:8087"
|
|
volumes:
|
|
- /etc/sensors.d:/etc/sensors.d:ro
|
|
- /etc/sensors3.conf:/etc/sensors3.conf:ro
|
|
- /dev:/dev
|
|
- /home/awin/.secret/tplink:/app/.secret
|