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

This commit is contained in:
2026-10-27 22:05:10 +03:00
parent 0ab3a341aa
commit cc51344be3
50 changed files with 1434 additions and 47 deletions
+4
View File
@@ -0,0 +1,4 @@
Command: docker compose --env-file .env up -d --build --scale api=2; docker compose --env-file .env ps
Result: API image built; the one-shot migration job exited 0; postgres, redis, api-1, api-2 and lb became healthy.
LB bound to 127.0.0.1:8081. API, PostgreSQL and Redis host ports are not published.
Images: python:3.12.8-slim, postgres:16.4-alpine, redis:7.4.2-alpine, nginx:1.27.4-alpine.