Coolify compose: attach gateway to coolify external network
Traefik runs on the `coolify` shared network. Without the gateway also being on it, Traefik logs "Could not find network 'coolify' for container, defaulting to first available" and picks an IP on the project-local network it can't reach → intermittent 504 Gateway Timeout (30s) in the browser. Hot-patched the running container via `docker network connect coolify`; this commit makes the fix permanent so the next Coolify redeploy doesn't reintroduce the regression. Worker and cron don't need it — they don't serve external HTTP.
This commit is contained in:
parent
4100002b4e
commit
f47d3dc118
1 changed files with 7 additions and 0 deletions
|
|
@ -28,6 +28,12 @@ networks:
|
|||
db_project:
|
||||
name: bo3nov2ija7g8wn9b1g2paxs
|
||||
external: true
|
||||
# Traefik runs on `coolify`. The gateway must join it so Host(`api.rahamafresh.com`)
|
||||
# actually resolves to a reachable IP; without it Traefik picks the wrong
|
||||
# interface and times out at 30s → intermittent 504s in the browser.
|
||||
coolify_shared:
|
||||
name: coolify
|
||||
external: true
|
||||
|
||||
services:
|
||||
gateway:
|
||||
|
|
@ -37,6 +43,7 @@ services:
|
|||
networks:
|
||||
- default
|
||||
- db_project
|
||||
- coolify_shared
|
||||
environment:
|
||||
APP_ROLE: gateway
|
||||
APP_MODE: prod
|
||||
|
|
|
|||
Loading…
Reference in a new issue