ЛР3: балансировка API и отказоустойчивость

This commit is contained in:
2026-11-04 17:17:44 +03:00
parent 0ab3a341aa
commit 9633b6e5c0
32 changed files with 1174 additions and 38 deletions
+6
View File
@@ -0,0 +1,6 @@
#!/bin/sh
set -eu
cd "$(dirname "$0")/.."
# Keep PostgreSQL named volume and the generated DB credentials unchanged.
# Restart shared DB and both API replicas; restart proxy to refresh backends.
docker compose --env-file .env restart -t 5 db api1 api2 lb