Files
mtusi2026lab4/scripts/restart.cmd
T
2026-11-11 18:55:53 +03:00

11 lines
355 B
Batchfile

@echo off
setlocal
cd /d "%~dp0.."
rem Preserve PostgreSQL named volume, tokens and secrets.
docker compose --env-file .env restart -t 5 db s3 api1 api2
if errorlevel 1 exit /b 1
docker compose --env-file .env up -d --no-deps --wait --wait-timeout 55 api1 api2
if errorlevel 1 exit /b 1
docker compose --env-file .env restart -t 5 lb
exit /b %ERRORLEVEL%