From be3c7f2d1d22d08b2943107bacea1a7629e22aea Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Fri, 19 Dec 2025 16:06:36 -0600 Subject: [PATCH] [WIP] Fix mounted prometheus.yml file not working (#605) * Initial plan * Fix Prometheus mounted prometheus.yml file by adding volume mount Co-authored-by: Siumauricio <47042324+Siumauricio@users.noreply.github.com> * Update blueprints/prometheus/template.toml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Siumauricio <47042324+Siumauricio@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- blueprints/prometheus/docker-compose.yml | 1 + blueprints/prometheus/template.toml | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) 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