diff --git a/docker-compose.yml b/docker-compose.yml index cede6a4..0a28673 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -137,6 +137,10 @@ services: nginx: image: nginx:1.27-alpine + # Restart on failure: a concurrent stack restart can start nginx before the + # backend's DNS entry exists ("host not found in upstream"), which is fatal + # at config load — retrying once dependencies are up self-heals the gateway. + restart: unless-stopped volumes: - ./infra/nginx/nginx.conf:/etc/nginx/nginx.conf:ro depends_on: