forked from mtusi2026/mtusi2026lab5
Лабораторная 5
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
@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
|
||||
Reference in New Issue
Block a user