Реализовать 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
+15
View File
@@ -0,0 +1,15 @@
#!/bin/sh
set -eu
# Restart API replicas, worker and ALL state stores; preserve volumes.
cd "$(dirname "$0")/.."
REPLICAS="${API_REPLICAS:-2}"
docker compose --env-file .env restart postgres redis broker s3
# s3-gw shares the s3 network namespace and must be restarted after it.
docker compose --env-file .env restart s3-gw
# "up -d" alone leaves running replicas untouched; restart them, then restore the scale
# (migrate/s3-init already applied; skip one-shots).
docker compose --env-file .env restart api worker
docker compose --env-file .env up -d --no-deps --scale "api=${REPLICAS}" api
docker compose --env-file .env up -d --no-deps worker
docker compose --env-file .env restart lb
exit 0