Реализовать lab5 на оценку 4: async attachments, outbox, worker и variants.

This commit is contained in:
Mikhail Verkovykh
2026-11-19 20:47:08 +03:00
parent 276dbdad8a
commit 92c67c23c0
86 changed files with 10148 additions and 30 deletions
+19
View File
@@ -0,0 +1,19 @@
@echo off
setlocal
rem Restart API replicas, worker and ALL state stores; volumes are preserved.
cd /d "%~dp0\.."
if "%API_REPLICAS%"=="" set API_REPLICAS=2
docker compose --env-file .env restart postgres redis broker s3
if errorlevel 1 exit /b 1
rem s3-gw shares the s3 network namespace and must be restarted after it.
docker compose --env-file .env restart s3-gw
if errorlevel 1 exit /b 1
docker compose --env-file .env restart api worker
if errorlevel 1 exit /b 1
docker compose --env-file .env up -d --no-deps --scale api=%API_REPLICAS% api
if errorlevel 1 exit /b 1
docker compose --env-file .env up -d --no-deps worker
if errorlevel 1 exit /b 1
docker compose --env-file .env restart lb
if errorlevel 1 exit /b 1
exit /b 0