diff --git a/blueprints/prometheus/docker-compose.yml b/blueprints/prometheus/docker-compose.yml index e1016777..1896c876 100644 --- a/blueprints/prometheus/docker-compose.yml +++ b/blueprints/prometheus/docker-compose.yml @@ -9,6 +9,7 @@ services: - "--web.console.templates=/usr/share/prometheus/consoles" - "--web.enable-lifecycle" volumes: + - ../files/prometheus.yml:/etc/prometheus/prometheus.yml - prometheus-data:/prometheus volumes: prometheus-data: {} diff --git a/blueprints/prometheus/template.toml b/blueprints/prometheus/template.toml index 535663dc..2415f3fe 100644 --- a/blueprints/prometheus/template.toml +++ b/blueprints/prometheus/template.toml @@ -10,7 +10,10 @@ port = 9_090 host = "${main_domain}" [[config.mounts]] -filePath = "/etc/prometheus/prometheus.yml" +# Note: this relative path is resolved by Dokploy to the file mounted from +# ../files/prometheus.yml in docker-compose, and mapped inside the container +# to /etc/prometheus/prometheus.yml. +filePath = "prometheus.yml" serviceName = "prometheus" content = """ # Prometheus Configuration