fix and update
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user