feat: add HAproxy and 2 api instances

This commit is contained in:
TAskMAster339
2026-10-10 13:20:58 +03:00
parent a856733fe9
commit 771951cad7
23 changed files with 742 additions and 213 deletions
+2 -1
View File
@@ -8,7 +8,7 @@ TLS_ARGS = $(if $(CA_FILE),--ca-file "$(CA_FILE)",)
.PHONY: help app-up app-down app-logs app-status test-backend test-baseline test-baseline-persistence check validate test load test-persistence test-failover
help:
@echo "app-up: prepare local environment, build and start API, PostgreSQL, Redis and frontend"
@echo "app-up: prepare local environment, migrate, build and start HAProxy, two API replicas, PostgreSQL, Redis and frontend"
@echo "app-down: stop application; keep database and session volumes"
@echo "app-logs / app-status: inspect application"
@echo "test-backend: Go race tests against PostgreSQL and Redis"
@@ -17,6 +17,7 @@ help:
app-up:
$(PYTHON) scripts/init_env.py
chmod +x scripts/restart.sh scripts/stop-one.sh
$(COMPOSE) up -d --build --wait
app-down: