Skip to content

Let a reverse proxy name the container - #12

Merged
Loa212 merged 1 commit into
mainfrom
fix/coolify-proxy-routing
Jul 30, 2026
Merged

Let a reverse proxy name the container#12
Loa212 merged 1 commit into
mainfrom
fix/coolify-proxy-routing

Conversation

@Loa212

@Loa212 Loa212 commented Jul 30, 2026

Copy link
Copy Markdown
Owner

What changed

  • drop container_name: nudo from the Compose service

Why

Coolify appends a per-deployment suffix to service names (nudo:main-ej0k0a09623vvgps4nke6ev5) and points its Traefik route at the name Compose generates. container_name overrides that naming and forces the container to be literally nudo, so the proxy's configured backend does not resolve.

The result is a 502 with the app perfectly healthy — the container logs show nudo is running — open the dashboard to finish setup dashboard=0.0.0.0:3000. The route exists; the backend behind it does not.

Impact

Nothing referred to the container by that name — the docker run --name nudo in the README and the release smoke test are a separate path and still name their own containers. Locally, Compose now auto-names it nudo-nudo-1; docker compose up -d and localhost:3000 are unchanged.

Validation

  • NUDO_SECRET_KEY=validation-only docker compose config --quiet
  • confirmed container_name is absent from the resolved config
  • docker compose config --images still resolves only to ghcr.io/loa212/nudo:latest
  • git diff --cached --check

The compose file pinned `container_name: nudo`. A proxy that generates its
own container names — Coolify appends a per-deployment suffix — points its
route at the name Compose would have generated, so pinning it leaves the
backend unresolvable and the proxy answers 502 rather than reaching a
container that is running and healthy.

Dropping the key costs nothing: no script, doc, or workflow referred to the
container by that name. The `docker run --name nudo` in the README is a
separate path and still names its own container.
@Loa212
Loa212 merged commit d840eb1 into main Jul 30, 2026
3 checks passed
@Loa212
Loa212 deleted the fix/coolify-proxy-routing branch July 30, 2026 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant