forked from mtusi2026/mtusi2026lab3
14 lines
243 B
Batchfile
14 lines
243 B
Batchfile
@echo off
|
|
setlocal
|
|
|
|
set "REPLICA=%~1"
|
|
|
|
if "%REPLICA%"=="" set "REPLICA=api1"
|
|
|
|
if not "%REPLICA%"=="api1" if not "%REPLICA%"=="api2" (
|
|
echo Usage: stop-one.bat [api1^|api2]
|
|
exit /b 1
|
|
)
|
|
|
|
docker compose stop %REPLICA%
|
|
exit /b %ERRORLEVEL% |