forked from mtusi2026/mtusi2026lab4
Lab4
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
@echo off
|
||||
cd /d "%~dp0.."
|
||||
|
||||
echo Restarting PostgreSQL and S3...
|
||||
docker compose --env-file .env restart postgres s3
|
||||
if errorlevel 1 exit /b 1
|
||||
|
||||
echo Waiting for storage...
|
||||
timeout /t 12 /nobreak >nul
|
||||
|
||||
echo Restarting API replicas and load balancer...
|
||||
docker compose --env-file .env restart api1 api2 lb
|
||||
if errorlevel 1 exit /b 1
|
||||
|
||||
echo Waiting for API...
|
||||
timeout /t 5 /nobreak >nul
|
||||
|
||||
exit /b 0
|
||||
Reference in New Issue
Block a user