Исправить замечания ревью: ACL при повторе, повтор POST в nginx, активная проверка готовности

This commit is contained in:
alenchha
2026-10-29 17:30:19 +03:00
parent af5b4ba6a6
commit c001061e18
18 changed files with 388 additions and 179 deletions
+7
View File
@@ -32,10 +32,17 @@ x-api: &api-defaults
services:
nginx:
image: nginx:1.27.3-alpine
command: ["/bin/sh", "/opt/nginx-health.sh"]
environment:
API_UPSTREAMS: ${API_UPSTREAMS:-api-1 api-2}
HEALTH_INTERVAL: "1"
HEALTH_FALL: "2"
HEALTH_RISE: "2"
ports:
- "127.0.0.1:8080:8080"
volumes:
- ./infra/nginx.conf:/etc/nginx/nginx.conf:ro
- ./infra/nginx-health.sh:/opt/nginx-health.sh:ro
depends_on:
api-1:
condition: service_healthy