@echo off docker compose restart api postgres :wait docker compose exec -T api python -c "import urllib.request;urllib.request.urlopen('http://localhost:8080/health/ready',timeout=2)" >nul 2>&1 if %errorlevel% neq 0 ( timeout /t 1 /nobreak >nul goto wait ) echo restart OK