From 20f7d919e2306864025024abc1f6e65183f2afb4 Mon Sep 17 00:00:00 2001 From: Jordan Sokolic Date: Sun, 13 Sep 2020 19:53:06 +0300 Subject: [PATCH] update monitoring docker-compose conf --- monitoring/.env.example | 9 +++++++-- monitoring/docker-compose.yaml | 6 ++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/monitoring/.env.example b/monitoring/.env.example index 548d61b..4b50d25 100644 --- a/monitoring/.env.example +++ b/monitoring/.env.example @@ -1,5 +1,10 @@ +INFLUXDB_ADDRESS=192.168.16.4 INFLUXDB_DB=collectd INFLUXDB_READ_USER=grafana -INFLUXDB_READ_PASSWORD=supersecret +INFLUXDB_READ_PASSWORD=supersecret1 +GF_ADDRESS=192.168.16.3 GF_SECURITY_ADMIN_USER=admin -GF_SECURITY_ADMIN_PASSWORD=changeme123 \ No newline at end of file +GF_SECURITY_ADMIN_PASSWORD=supersecret2 +# enable these to serve Grafana from a sub-path, e.g., http://homelab.server/grafana +# GF_SERVER_ROOT_URL=%(protocol)s://%(domain)s/grafana/ +# GF_SERVER_SERVE_FROM_SUB_PATH=true \ No newline at end of file diff --git a/monitoring/docker-compose.yaml b/monitoring/docker-compose.yaml index 488b70d..58c25de 100644 --- a/monitoring/docker-compose.yaml +++ b/monitoring/docker-compose.yaml @@ -3,7 +3,8 @@ services: grafana: image: grafana/grafana:6.6.2 networks: - - openwrt-lan + openwrt-lan: + ipv4_address: $GF_ADDRESS ports: - "3000:3000" env_file: @@ -16,7 +17,8 @@ services: influxdb: image: influxdb:1.7 networks: - - openwrt-lan + openwrt-lan: + ipv4_address: $INFLUXDB_ADDRESS env_file: - .env volumes: