перенос файлов рабочей версии lab2

This commit is contained in:
2026-11-13 19:35:08 +03:00
parent 0ab3a341aa
commit f880e234db
10 changed files with 885 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
@echo off
cd /d %~dp0\..
docker compose restart api postgres
set /a count=0
:check_loop
timeout /t 2 /nobreak >nul
curl -s -f http://localhost:8080/health/ready >nul 2>&1
if %errorlevel% equ 0 exit /b 0
set /a count+=1
if %count% lss 15 goto check_loop
echo API failed to become ready
exit /b 1