📦 NEW: DEV-871 Add Hetzner Plugin to Grafana monitor all Server Dynamic

This commit is contained in:
2025-01-30 13:01:50 +00:00
parent a4d9888bfe
commit ebf1ab5985
9 changed files with 378 additions and 141 deletions

View File

@@ -6,8 +6,8 @@ volumes:
driver: local
networks:
default:
external:
name: grafana-prometheus
name: grafana-prometheus
external: true
services:
grafana:
image: docker.io/grafana/grafana-oss:10.4.2
@@ -39,19 +39,22 @@ services:
prometheus:
image: docker.io/prom/prometheus:v2.51.2
container_name: prometheus
user: "65534:65534"
ports:
- 9090:9090
command: "
--config.file=/etc/prometheus/prometheus.yaml \
--web.config.file=/etc/prometheus/web-config.yaml \
--web.external-url=https://prometheus.phx-erp.de
"
command:
- "--config.file=/etc/prometheus/prometheus.yaml"
- "--web.config.file=/etc/prometheus/web-config.yaml"
- "--web.external-url=https://prometheus.phx-erp.de"
volumes:
# - '--web.enable-lifecycle' # Enable reload of configuration automatically without restart !!!
- ./config/prometheus.yaml:/etc/prometheus/prometheus.yaml:ro # RO Read-only
- ./config/web-config.yaml:/etc/prometheus/web-config.yaml:ro # RO Read-only
- ./https_portal/data/prometheus.phx-erp.de/production:/etc/prometheus/certs
- ./config:/opt/phx/main/config # 🔹 Add this to mount the config folder
- prometheus-data:/prometheus
- ./https_portal/data/prometheus.phx-erp.de/production/signed.crt:/etc/prometheus/certs/signed.crt:ro
- ./https_portal/data/prometheus.phx-erp.de/production/domain.key:/etc/prometheus/certs/domain.key:ro
restart: unless-stopped
networks:
- default