forked from mtusi2026/mtusi2026lab7
Complete lab 7 security infrastructure
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
@echo off
|
||||
setlocal
|
||||
cd /d "%~dp0\.."
|
||||
|
||||
if /I "%TARGET_INSTANCE_ID%"=="replica-a" (
|
||||
docker compose --env-file .env stop --timeout 1 api1 api1-mtls
|
||||
exit /b %ERRORLEVEL%
|
||||
)
|
||||
|
||||
if /I "%TARGET_INSTANCE_ID%"=="replica-b" (
|
||||
docker compose --env-file .env stop --timeout 1 api2 api2-mtls
|
||||
exit /b %ERRORLEVEL%
|
||||
)
|
||||
|
||||
exit /b 2
|
||||
Reference in New Issue
Block a user