Files
mtusi2026lab5/scripts/restart.cmd

11 lines
418 B
Batchfile

@echo off
rem Windows twin of scripts/restart.sh: tests/resilience.py starts the hook directly,
rem and Windows cannot execute a .sh file. Same actions, volumes are kept.
setlocal
cd /d "%~dp0.."
docker compose stop api worker dispatcher || exit /b 1
docker compose restart postgres valkey s3 broker || exit /b 1
docker compose start api dispatcher worker || exit /b 1
docker compose restart lb || exit /b 1
exit /b 0