lab3: балансировка, идемпотентность, compose-стенд, evidence и отчёт.

This commit is contained in:
Conloty
2026-11-13 13:57:48 +03:00
parent 0ab3a341aa
commit c86a65f41c
30 changed files with 2569 additions and 14 deletions
+7
View File
@@ -0,0 +1,7 @@
@echo off
cd /d "%~dp0.."
docker compose restart postgres >nul || exit /b 1
docker compose exec -T postgres sh -c "i=0; until pg_isready -U msg -d msg -q; do i=$((i+1)); [ $i -gt 60 ] && exit 1; sleep 1; done" || exit /b 1
docker compose restart api lb >nul || exit /b 1
docker compose up -d --no-build --no-recreate >nul
exit /b %errorlevel%