Files
mtusi2026lab7/scripts/stop-one.cmd
T
2026-11-28 12:29:50 +01:00

10 lines
263 B
Batchfile

@echo off
cd /d "%~dp0.."
if "%TARGET_INSTANCE_ID%"=="api1" goto stop
if "%TARGET_INSTANCE_ID%"=="api2" goto stop
echo unknown target instance: %TARGET_INSTANCE_ID% >&2
exit /b 1
:stop
docker compose --env-file .env stop %TARGET_INSTANCE_ID%
exit /b %ERRORLEVEL%