Run two API replicas behind HAProxy with verified failover

This commit is contained in:
Самохвалов Андрей Ремович
2026-10-02 11:53:12 +03:00
parent 44fcce080f
commit 645164cb03
9 changed files with 211 additions and 33 deletions
+5
View File
@@ -0,0 +1,5 @@
#!/bin/sh
set -eu
cd "$(dirname "$0")/.."
docker compose --env-file .env stop api lb postgres
docker compose --env-file .env up -d --wait --scale api=2