lab3: 2 API replicas behind nginx LB, idempotency, X-Instance-Id

This commit is contained in:
2026-11-16 21:43:00 +03:00
commit 9910af05d5
53 changed files with 4569 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
@echo off
docker compose --env-file .env restart postgres api-1 api-2 lb
:wait
curl.exe -fsS http://localhost:8080/health/ready >nul 2>&1
if %errorlevel% neq 0 (
timeout /t 1 /nobreak >nul
goto wait
)
exit /b 0