Files
mtusi2026lab5/scripts/restart.cmd
T

12 lines
427 B
Batchfile

@echo off
setlocal
cd /d "%~dp0.."
docker compose --env-file .env stop --timeout 5 lb api1 api2 worker dispatcher broker s3 redis postgres
if errorlevel 1 exit /b 1
docker compose --env-file .env up -d --wait postgres redis broker s3 s3-bootstrap
if errorlevel 1 exit /b 1
docker compose --env-file .env up -d --no-deps api1 api2 lb dispatcher worker
if errorlevel 1 exit /b 1
python scripts\wait_ready.py
exit /b %ERRORLEVEL%