Use SERVICE_URL_FRONTEND_8080 for Coolify Traefik routing

SERVICE_FQDN_FRONTEND_8080 is not generated when the domain is assigned
without a port suffix; Coolify needs SERVICE_URL_FRONTEND_8080 so Traefik
gets loadbalancer.server.port=8080 for Frappe nginx.
This commit is contained in:
epistemophiliac 2026-06-16 22:24:44 -04:00
parent dad0d613fe
commit faf2d847cf
3 changed files with 5 additions and 5 deletions

View file

@ -178,7 +178,7 @@ services:
command:
- export FRAPPE_SITE_NAME_HEADER=$$(tr -d '\r\n' < /home/frappe/frappe-bench/sites/currentsite.txt); exec nginx-entrypoint.sh
environment:
- SERVICE_FQDN_FRONTEND_8080
- SERVICE_URL_FRONTEND_8080
- 'BACKEND=backend:8000'
- 'SOCKETIO=websocket:9000'
- 'UPSTREAM_REAL_IP_ADDRESS=${UPSTREAM_REAL_IP_ADDRESS:-127.0.0.1}'

View file

@ -80,7 +80,7 @@ Login: `https://your-domain` — user `Administrator`, password = `ADMIN_PASSWOR
| Symptom | Fix |
|---------|-----|
| Traefik `404 page not found` / URL unreachable | Domain must be on service `frontend` port **8080**; app `ports_exposes` must be 8080 not 3000 |
| Traefik `404 page not found` / URL unreachable | Domain on service `frontend` port **8080**; compose must declare `SERVICE_URL_FRONTEND_8080` (not `SERVICE_FQDN_*`); `ports_exposes` = 8080 |
| Backend unhealthy / deploy fails after migrator | Healthcheck must send `Host: <site>` — fixed in compose; redeploy |
| `SITE_NAME empty` on create-site | Assign domain on `frontend:8080` before deploy (`SERVICE_FQDN_FRONTEND`) |
| Wrong site / 404 nginx | Delete old `SITE_NAME` in Coolify UI; ensure header matches domain |

View file

@ -60,10 +60,10 @@ else
fi
# SERVICE_FQDN on frontend with port 8080 (Frappe nginx default; Coolify Traefik target)
if grep -q 'SERVICE_FQDN_FRONTEND_8080' "$COMPOSE_FILE"; then
pass "[DC-03] SERVICE_FQDN_FRONTEND_8080 present"
if grep -q 'SERVICE_URL_FRONTEND_8080' "$COMPOSE_FILE"; then
pass "[DC-03] SERVICE_URL_FRONTEND_8080 present (Traefik → nginx:8080)"
else
err "[DC-03] missing SERVICE_FQDN_FRONTEND_8080 on frontend"
err "[DC-03] missing SERVICE_URL_FRONTEND_8080 on frontend"
fi
if grep -q 'SERVICE_FQDN_FRONTEND' "$COMPOSE_FILE"; then