ЛР 7 — БВТ2302 — Боданюк — на 3 #66

Open
wfa wants to merge 16 commits from wfa/mtusi2026lab7:solution/bvt2302-bodanyuk into main
Showing only changes of commit 4c9b0f284b - Show all commits
+5 -5
View File
@@ -18,9 +18,9 @@ docker compose stop lb api relay worker
docker compose restart postgres valkey s3 broker openbao
# 3. Operator: unseal (OpenBao is sealed after every start).
"$PY" scripts/bao_operator.py unseal
# 4. API replicas (log in to OpenBao again, read their secrets), the LB, then relay and worker.
# HAProxy resolves the new replica addresses through Docker DNS by itself.
docker compose start api
docker compose start lb
docker compose start relay worker
# 4. API replicas (log in to OpenBao again, read their secrets), relay, worker and the LB in ONE
# command: compose starts them in dependency order (lb after api is healthy) and waits for the
# health conditions once, relay/worker in parallel with api (three separate `start` calls cost
# 3 x ~23 s on Windows and exceeded the test's 90 s budget). HAProxy re-resolves the replicas.
docker compose start api relay worker lb
echo "restart.sh: lb, api (all replicas), relay, worker, postgres, valkey, s3, broker and openbao restarted with volumes preserved; openbao unsealed"