Files
mtusi2026lab5/scripts/stop-one.cmd
T
2026-11-24 17:58:42 +03:00

14 lines
266 B
Batchfile

@echo off
setlocal
cd /d "%~dp0.."
if /I "%TARGET_INSTANCE_ID%"=="api-1" (
docker compose stop api1
exit /b %errorlevel%
)
if /I "%TARGET_INSTANCE_ID%"=="api-2" (
docker compose stop api2
exit /b %errorlevel%
)
echo Unknown TARGET_INSTANCE_ID 1>&2
exit /b 1