forked from mtusi2026/mtusi2026lab5
Реализовать lab5 на оценку 4: async attachments, outbox, worker и variants.
This commit is contained in:
@@ -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"
|
||||
Reference in New Issue
Block a user