diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 386c3cf..0c2a79e 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -8,6 +8,9 @@ http { sendfile on; keepalive_timeout 65; + # Use Docker's internal DNS so upstream IPs re-resolve after container restarts + resolver 127.0.0.11 valid=10s ipv6=off; + upstream api { server api:8000; }