forked from mtusi2026/mtusi2026lab4
8 lines
185 B
Batchfile
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%
|