Реализовать 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
+9
View File
@@ -0,0 +1,9 @@
#!/bin/sh
set -eu
# Bootstrap lab4 stack with ≥2 API replicas behind LB, PostgreSQL, Redis and private S3.
cd "$(dirname "$0")/.."
REPLICAS="${API_REPLICAS:-2}"
python3 scripts/init_secrets.py
docker compose --env-file .env config --quiet
docker compose --env-file .env up -d --build --scale "api=${REPLICAS}"
printf '%s\n' "stack up: api scale=${REPLICAS}, entry http://127.0.0.1:8080"