forked from mtusi2026/mtusi2026lab4
Lab4
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
@echo off
|
||||
cd /d "%~dp0.."
|
||||
|
||||
if /I "%TARGET_INSTANCE_ID%"=="api1" (
|
||||
docker compose --env-file .env stop api1 >nul 2>&1
|
||||
exit /b %errorlevel%
|
||||
)
|
||||
|
||||
if /I "%TARGET_INSTANCE_ID%"=="api2" (
|
||||
docker compose --env-file .env stop api2 >nul 2>&1
|
||||
exit /b %errorlevel%
|
||||
)
|
||||
|
||||
exit /b 1
|
||||
Reference in New Issue
Block a user