lab3: Compose+Nginx, две API-реплики и идемпотентность

This commit is contained in:
2026-11-11 22:14:42 +03:00
parent 0ab3a341aa
commit d4adcce4ff
26 changed files with 1409 additions and 20 deletions
+12
View File
@@ -0,0 +1,12 @@
@echo off
cd /d "%~dp0\.."
if "%TARGET_INSTANCE_ID%"=="" (
echo TARGET_INSTANCE_ID is required >&2
exit /b 1
)
if /I not "%TARGET_INSTANCE_ID%"=="api1" if /I not "%TARGET_INSTANCE_ID%"=="api2" (
echo unknown TARGET_INSTANCE_ID: %TARGET_INSTANCE_ID% >&2
exit /b 1
)
docker compose --env-file .env stop %TARGET_INSTANCE_ID%
exit /b %ERRORLEVEL%