Files
mtusi2026lab3/scripts/stop-one.cmd
T
2026-11-12 13:06:36 +03:00

8 lines
192 B
Batchfile

@echo off
cd /d "%~dp0.."
if "%TARGET_INSTANCE_ID%"=="api1" goto stop
if "%TARGET_INSTANCE_ID%"=="api2" goto stop
exit /b 2
:stop
docker compose --env-file .env stop -t 2 %TARGET_INSTANCE_ID%