This commit is contained in:
pampixz
2026-12-03 19:25:38 +03:00
parent 20afc2c790
commit 38d908afc9
47 changed files with 2065 additions and 24 deletions
+28
View File
@@ -0,0 +1,28 @@
@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