👌 IMPROVE: Enable reload of configuration automatically without restart

This commit is contained in:
2024-05-03 15:51:29 +00:00
parent 7ad938eefe
commit d6067cb422

View File

@@ -29,6 +29,7 @@ services:
- 9090:9090 - 9090:9090
command: "--config.file=/etc/prometheus/prometheus.yaml" command: "--config.file=/etc/prometheus/prometheus.yaml"
volumes: volumes:
- '--web.enable-lifecycle' # Enable reload of configuration automatically without restart !!!
- ./config/prometheus.yaml:/etc/prometheus/prometheus.yaml:ro # RO Read-only - ./config/prometheus.yaml:/etc/prometheus/prometheus.yaml:ro # RO Read-only
- prometheus-data:/prometheus - prometheus-data:/prometheus
restart: unless-stopped restart: unless-stopped