You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 227d287
Browse filesBrowse the repository at this point in the historyBrowse files
fix(coder-routes): stop distinct web_extra_exposed_ports from clobbering each other's route
Any two web_extra_exposed_ports entries on the "web" service (e.g.
ddev-playwright's playwright:9323 and a VNC add-on's kasmvnc:8444) reduced
to the same svc_name="web" in the dynamic add-on branch, so both computed
the identical ROUTER_NAME and whichever was processed last silently
overwrote the other's Traefik route. Key the fallback slug on service AND
port so distinct ports never collide.
Also generalize docker-compose.coder-describe.yaml generation: rather than
hardcoding "xhgui"/"adminer" in coder-setup, coder-routes now derives a
describe-url-port override for every real compose service it discovers
while building routes (not just two hardcoded names), so any current or
future add-on/custom service with its own router gets a correct Coder URL
in `ddev describe`/`ddev launch` automatically. coder-setup keeps only a
minimal bootstrap covering the primary web+Mailpit URLs, since those are
the only ones computable before a project has ever been started.
This cannot fix web_extra_exposed_ports rows themselves (playwright,
kasmvnc, etc.) — verified against ddev/ddev source that
cmd/ddev/cmd/describe.go's WebExtraExposedPorts stanza always builds that
row's URL itself and never reads describe-url-port. That needs a separate
upstream feature request against ddev/ddev.
Validated live in a running Coder sandbox: both routes now coexist
(randyfay-coder-web-9323, randyfay-coder-web-8444), and xhgui's `ddev
describe` row picked up its Coder URL after one restart.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
0 commit comments