fix and update

This commit is contained in:
lendry
2026-06-30 11:00:43 +03:00
parent 7f10b18336
commit c082b087c5
3 changed files with 53 additions and 6 deletions

View File

@@ -303,6 +303,21 @@ services:
timeout: 5s
retries: 3
# После recreate api-gateway nginx держит старый IP upstream → 502. Этот watcher
# делает nginx -s reload когда gateway снова поднялся (~55 с на Nest bootstrap).
nginx-gateway-sync:
profiles: ["proxy"]
image: docker:27-cli
container_name: lendry-id-nginx-gateway-sync
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./infra/nginx-gateway-sync/entrypoint.sh:/entrypoint.sh:ro
depends_on:
nginx:
condition: service_started
entrypoint: ["/bin/sh", "/entrypoint.sh"]
volumes:
postgres_data:
redis_data: