Run two API replicas behind HAProxy with verified failover
This commit is contained in:
Executable
+5
@@ -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
|
||||
Reference in New Issue
Block a user