Files
mtusi2026lab4/scripts/restart.cmd

11 lines
375 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 || exit /b 1
docker compose restart postgres valkey s3 || exit /b 1
docker compose start api || exit /b 1
docker compose restart lb || exit /b 1
exit /b 0