grafana config
This commit is contained in:
parent
5b8f2f5189
commit
b8e28bb870
1
.env
1
.env
|
@ -2,6 +2,7 @@ MQTT_PORT=1883
|
|||
INFLUX_PORT=8086
|
||||
GRAFANA_PORT=3002
|
||||
ZIGBEE_MQTT_PORT=1884
|
||||
HOST_IP=192.168.222.123
|
||||
|
||||
DATA_DIR=/opt/monitoring/
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@ version: '3'
|
|||
services:
|
||||
grafana:
|
||||
image: "grafana/grafana:latest"
|
||||
restart: unless-stopped
|
||||
user: "1000"
|
||||
depends_on:
|
||||
- influxdb
|
||||
|
@ -12,8 +13,17 @@ services:
|
|||
volumes:
|
||||
- "${DATA_DIR}/grafana/data:/var/lib/grafana"
|
||||
- "${DATA_DIR}/grafana/log:/var/log/grafana"
|
||||
- "${DATA_DIR}/grafana/config:/etc/grafana"
|
||||
restart: unless-stopped
|
||||
- "./grafana/config:/etc/grafana"
|
||||
environment:
|
||||
- GF_SECURITY_ADMIN_PASSWORD=secret
|
||||
- GF_SERVER_ROOT_URL=http://${HOST_IP}:${GRAFANA_PORT}/
|
||||
- GF_RENDERING_SERVER_URL=http://renderer:8081/render
|
||||
- GF_RENDERING_CALLBACK_URL=http://grafana:3000/
|
||||
- GF_LOG_FILTERS=rendering:debug
|
||||
- GF_INSTALL_PLUGINS=ryantxu-ajax-panel,grafana-piechart-panel
|
||||
|
||||
renderer:
|
||||
image: grafana/grafana-image-renderer:latest
|
||||
|
||||
influxdb:
|
||||
image: "influxdb:latest"
|
||||
|
|
Loading…
Reference in New Issue
Block a user