Retooled source path of prometheus.yaml bind mount to reflect an absolute path to /etc/prometheus which is prescribed in "Server Monitoring Prometheus and Grafana Tutorial" (Sep 21, 2021).

This commit is contained in:
FlickRare 2024-05-23 18:32:31 -06:00
parent d589b4d8ac
commit 93a5ed124e

View File

@ -10,6 +10,6 @@ services:
- 9090:9090
command: "--config.file=/etc/prometheus/prometheus.yaml"
volumes:
- ./config/prometheus.yaml:/etc/prometheus/prometheus.yaml:ro
- /etc/prometheus/prometheus.yaml:/etc/prometheus/prometheus.yaml:ro
- prometheus-data:/prometheus
restart: unless-stopped