fix: edge.hcl uses Docker hostname routing — forgejo/woodpecker/chat upstreams unreachable in Nomad #1031
Labels
No labels
action
backlog
blocked
bug-report
cannot-reproduce
in-progress
in-triage
needs-triage
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
rejected
reproduced
tech-debt
underspecified
vision
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#1031
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
edge.hcl caddy task uses bare Docker hostnames (
forgejo:3000,woodpecker:8000,chat:8080) for reverse_proxy routes. These resolve via Docker compose DNS but fail in Nomad bridge networking — no DNS maps these names between allocations.S5-fix-7 (#1018) converted only the staging route to nomadService discovery. The other three routes + dispatcher sidecar env (
FORGE_URL,FORGE_REPO) still use bare hostnames.Confirmed by planner code inspection and prediction #1021.
Proposed solution
Add
network_mode = "host"to the caddy docker config block in edge.hcl (matching woodpecker-agent.hcl pattern), then replace bare hostnames with127.0.0.1:PORTfor host-networked services, or use{{ range nomadService "X" }}service discovery matching the staging pattern. The dispatcher sidecar env needs the same treatment.Affected files
Acceptance criteria