Files
mtusi2026lab3-fork/scripts/stop-one.cmd
T

8 lines
185 B
Batchfile

@echo off
cd /d "%~dp0.."
if "%TARGET_INSTANCE_ID%"=="api-a" goto stop
if "%TARGET_INSTANCE_ID%"=="api-b" goto stop
exit /b 2
:stop
docker compose stop --timeout 5 %TARGET_INSTANCE_ID%