forked from mtusi2026/mtusi2026lab6
9 lines
430 B
Batchfile
9 lines
430 B
Batchfile
@echo off
|
|
rem Demo hook for the defense on Windows: scripts\worker.cmd stop ^| start ^| status (volumes are kept).
|
|
cd /d "%~dp0.."
|
|
if "%1"=="stop" ( docker compose stop worker & exit /b %ERRORLEVEL% )
|
|
if "%1"=="start" ( docker compose up -d --wait --no-recreate --no-build --no-deps worker & exit /b %ERRORLEVEL% )
|
|
if "%1"=="status" ( docker compose ps worker & exit /b %ERRORLEVEL% )
|
|
echo usage: %0 stop^|start^|status
|
|
exit /b 2
|