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:
parent
dad0d613fe
commit
faf2d847cf
3 changed files with 5 additions and 5 deletions
|
|
@ -178,7 +178,7 @@ services:
|
||||||
command:
|
command:
|
||||||
- export FRAPPE_SITE_NAME_HEADER=$$(tr -d '\r\n' < /home/frappe/frappe-bench/sites/currentsite.txt); exec nginx-entrypoint.sh
|
- export FRAPPE_SITE_NAME_HEADER=$$(tr -d '\r\n' < /home/frappe/frappe-bench/sites/currentsite.txt); exec nginx-entrypoint.sh
|
||||||
environment:
|
environment:
|
||||||
- SERVICE_FQDN_FRONTEND_8080
|
- SERVICE_URL_FRONTEND_8080
|
||||||
- 'BACKEND=backend:8000'
|
- 'BACKEND=backend:8000'
|
||||||
- 'SOCKETIO=websocket:9000'
|
- 'SOCKETIO=websocket:9000'
|
||||||
- 'UPSTREAM_REAL_IP_ADDRESS=${UPSTREAM_REAL_IP_ADDRESS:-127.0.0.1}'
|
- 'UPSTREAM_REAL_IP_ADDRESS=${UPSTREAM_REAL_IP_ADDRESS:-127.0.0.1}'
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,7 @@ Login: `https://your-domain` — user `Administrator`, password = `ADMIN_PASSWOR
|
||||||
|
|
||||||
| Symptom | Fix |
|
| 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 |
|
| 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`) |
|
| `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 |
|
| Wrong site / 404 nginx | Delete old `SITE_NAME` in Coolify UI; ensure header matches domain |
|
||||||
|
|
|
||||||
|
|
@ -60,10 +60,10 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# SERVICE_FQDN on frontend with port 8080 (Frappe nginx default; Coolify Traefik target)
|
# SERVICE_FQDN on frontend with port 8080 (Frappe nginx default; Coolify Traefik target)
|
||||||
if grep -q 'SERVICE_FQDN_FRONTEND_8080' "$COMPOSE_FILE"; then
|
if grep -q 'SERVICE_URL_FRONTEND_8080' "$COMPOSE_FILE"; then
|
||||||
pass "[DC-03] SERVICE_FQDN_FRONTEND_8080 present"
|
pass "[DC-03] SERVICE_URL_FRONTEND_8080 present (Traefik → nginx:8080)"
|
||||||
else
|
else
|
||||||
err "[DC-03] missing SERVICE_FQDN_FRONTEND_8080 on frontend"
|
err "[DC-03] missing SERVICE_URL_FRONTEND_8080 on frontend"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if grep -q 'SERVICE_FQDN_FRONTEND' "$COMPOSE_FILE"; then
|
if grep -q 'SERVICE_FQDN_FRONTEND' "$COMPOSE_FILE"; then
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue