@echo off cd /d "%~dp0.." echo Restarting PostgreSQL and S3... docker compose --env-file .env restart postgres s3 if errorlevel 1 exit /b 1 timeout /t 30 /nobreak >nul echo Restarting API replicas... docker compose --env-file .env restart api1 api2 if errorlevel 1 exit /b 1 echo Recreating TLS proxies... docker compose --env-file .env up -d --force-recreate --no-deps api1-tls api2-tls s3-tls if errorlevel 1 exit /b 1 echo Restarting load balancer... docker compose --env-file .env restart lb if errorlevel 1 exit /b 1 echo Waiting for services... docker compose --env-file .env up -d --wait if errorlevel 1 exit /b 1 timeout /t 10 /nobreak >nul exit /b 0