From d014fb916f018efbbc26d9f4fc110e230de5d5dc Mon Sep 17 00:00:00 2001 From: Nils Pukropp Date: Mon, 15 Jun 2026 16:42:04 +0200 Subject: [PATCH] updated entrypoint --- frontend/entrypoint.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/frontend/entrypoint.sh b/frontend/entrypoint.sh index 32b583a..43b68b0 100644 --- a/frontend/entrypoint.sh +++ b/frontend/entrypoint.sh @@ -1,13 +1,12 @@ #!/bin/sh -# The backend hostname is 'holy-backend' based on docker-compose.yml -# We wait for port 8000 to be open -echo "Waiting for backend (holy-backend:8000) to be available..." +# Wait for the Rust backend (holy-rust:8001) before serving. +echo "Waiting for backend (holy-rust:8001) to be available..." MAX_RETRIES=30 COUNT=0 -while ! nc -z holy-backend 8000; do +while ! nc -z holy-rust 8001; do COUNT=$((COUNT + 1)) if [ $COUNT -ge $MAX_RETRIES ]; then echo "Backend timed out after $MAX_RETRIES attempts - starting Nginx anyway"