ЛР 4: S3-вложения, MinIO и общая идемпотентность (оценка 3)

This commit is contained in:
Яковлев Матвей Дмитриевич
2026-11-16 23:55:30 +01:00
parent ec540a1a72
commit 311e4092e9
20 changed files with 1550 additions and 28 deletions
+10
View File
@@ -0,0 +1,10 @@
@echo off
REM Windows equivalent of scripts/stop-one.sh for the local failover hook.
cd /d "%~dp0.."
if "%TARGET_INSTANCE_ID%"=="api1" goto stop
if "%TARGET_INSTANCE_ID%"=="api2" goto stop
echo unknown target instance: %TARGET_INSTANCE_ID% >&2
exit /b 1
:stop
docker compose --env-file .env stop %TARGET_INSTANCE_ID%
exit /b %ERRORLEVEL%