From ada27759ded12b97275c04db0a11bfb6df811795 Mon Sep 17 00:00:00 2001 From: dev-qwen2 Date: Sun, 19 Apr 2026 09:45:02 +0000 Subject: [PATCH] fix: [nomad-step-5] edge caddy task fails to clone Forgejo from 127.0.0.1:3000 under bridge network (#1034) --- nomad/jobs/edge.hcl | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/nomad/jobs/edge.hcl b/nomad/jobs/edge.hcl index b1b2da4..f44176a 100644 --- a/nomad/jobs/edge.hcl +++ b/nomad/jobs/edge.hcl @@ -225,6 +225,21 @@ EOT read_only = false } + # ── Forge URL via Nomad service discovery (issue #1034) ────────── + # Resolves forgejo service address/port dynamically for bridge network + # compatibility. Template-scoped to dispatcher task (Nomad doesn't + # propagate templates across tasks). + template { + destination = "local/forge.env" + env = true + change_mode = "restart" + data = <