Fix staging containers failing on Windows Docker builds

Strip CRLF from entrypoint scripts in backend/frontend images, use Docker
DNS in staging nginx config, and wait for healthy app services before nginx.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-23 16:16:14 +03:30
parent 2b2cca8361
commit eff27e359b
7 changed files with 24 additions and 17 deletions

View File

@@ -249,6 +249,8 @@ On the Windows host, from repo `infrastructure/`:
| Port 8088 unreachable | Windows firewall rule; confirm nginx container is up |
| Backend restart loop | JWT secrets still placeholder; fix `backend.staging.env` |
| Backend DB auth error | `DATABASE_URL` password ≠ `POSTGRES_PASSWORD` |
| `dumb-init docker-entrypoint.sh: No such file or directory` | Windows CRLF in shell scripts — fixed in Dockerfiles (rebuild images). |
| `nginx: host not found in upstream "backend:3000"` | Backend/frontend not running yet — fix entrypoint/env first; nginx config uses Docker DNS resolver. |
**Logs:**