Document dokploy-traefik's missing dokploy-network attachment (Stage 2a)
Confirmed the hard way on a real second-domain setup: TLS issuance succeeded, the domain's Traefik labels were correctly applied to frontend, and curl still got a clean 504 the entire time — because dokploy-traefik (auto-provisioned once per VPS by Dokploy itself, not by this project) had come back attached only to the default bridge network, not dokploy-network, so it had no path to the container it was routing to. Every other symptom pointed at a labels/DNS problem; it wasn't. Documents the check (docker inspect dokploy-traefik's NetworkSettings) and fix (docker network connect dokploy-network dokploy-traefik), plus the caveat that the fix isn't persistent — it would need reapplying if Dokploy ever recreates its own Traefik container. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012pc2x7vyuUofdT3kLuqF3Y
This commit is contained in:
parent
9c7db8580d
commit
3ab0e1e2a0
|
|
@ -192,12 +192,37 @@ Dokploy dashboard → this Compose application → **Domains** tab → **Add Dom
|
|||
- **Container Port**: `8080` (`frontend`'s internal port — see `frappe_docker/overrides/compose.noproxy.yaml`; not `HTTP_PUBLISH_PORT`, which is only the *local-dev* host-port mapping)
|
||||
- **HTTPS**: enabled, Certificate: **Let's Encrypt**
|
||||
|
||||
Save, then redeploy. ⚠ **Per Dokploy's own docs (not yet confirmed live against a second real
|
||||
client domain by us):** a Compose app's domain settings are applied as Traefik labels at deploy
|
||||
time, not the moment you click Save — the new domain won't actually route anywhere until the next
|
||||
deploy finishes. Dokploy generates these labels itself; nothing to hand-edit in
|
||||
Save, then redeploy. ⚠ **Confirmed the hard way:** a Compose app's domain settings are applied as
|
||||
Traefik labels at deploy time, not the moment you click Save — the new domain won't actually
|
||||
route anywhere until the next deploy finishes (visible on `frontend`'s own container labels via
|
||||
`docker inspect <frontend-container> --format '{{json .Config.Labels}}'` — look for
|
||||
`traefik.enable`/`traefik.http.routers.*` entries; their absence after a deploy means this hasn't
|
||||
synced yet, not a config mistake). Dokploy generates these labels itself; nothing to hand-edit in
|
||||
`docker-compose.yml`/`docker-compose.dokploy.yml` for this.
|
||||
|
||||
⚠ **Confirmed the hard way, and genuinely surprising — check this on every new VPS:**
|
||||
`dokploy-traefik` (Dokploy's own shared reverse-proxy container, auto-provisioned once per server
|
||||
when it's first registered with Dokploy — not something this playbook or any client project
|
||||
creates) is not guaranteed to actually be attached to `dokploy-network`, the overlay network every
|
||||
deployed app's containers join so Traefik can reach them. On the VPS this was found on,
|
||||
`dokploy-traefik` had been sitting stopped for an unknown reason and came back attached only to
|
||||
the default `bridge` network — Traefik itself started fine, TLS/Let's Encrypt issuance succeeded,
|
||||
the domain's Traefik labels were correctly applied to `frontend`, and `curl` still got a clean
|
||||
`504 Gateway Timeout` the entire time, because Traefik simply had no network path to the
|
||||
container it was trying to proxy to. Every other symptom looked like a labels or DNS problem; it
|
||||
wasn't. Confirm before assuming anything else is wrong:
|
||||
```
|
||||
docker inspect dokploy-traefik --format '{{json .NetworkSettings.Networks}}'
|
||||
```
|
||||
If `dokploy-network` isn't in that output, fix it directly:
|
||||
```
|
||||
docker network connect dokploy-network dokploy-traefik
|
||||
```
|
||||
This fix is **not persistent** — it's an ad-hoc `docker network connect`, not something stored in
|
||||
any compose file or Dokploy setting, so it would need reapplying if Dokploy ever recreates its own
|
||||
Traefik container (an upgrade, for instance). Worth rechecking this specific thing first if
|
||||
domain routing that previously worked suddenly stops.
|
||||
|
||||
Skip this sub-step entirely for local dev — `<client>.localhost` needs no DNS or Dokploy domain,
|
||||
just the site name below.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue