lab2: PostgreSQL, sessions, compose, evidence tooling.

This commit is contained in:
Conloty
2026-11-12 21:52:21 +03:00
parent 65003b6119
commit ac54d4cfde
15 changed files with 1001 additions and 14 deletions
+6
View File
@@ -0,0 +1,6 @@
@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 >nul
exit /b %errorlevel%