forked from mtusi2026/mtusi2026lab3
lab3 completed
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
@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%
|
||||
Reference in New Issue
Block a user