NGINX proxy_pass

To prevent NGINX from crashing if an proxy_pass host can’t be resolved, add a resolver to the directive. E.g.,

server {
       listen      80;
       server_name     test.com;
       location / {
          resolver 8.8.8.8
          proxy_pass         http://dev-example.io:5016/;
          proxy_redirect     off;
 ...

This could either be a public DNS like Google (8.8.8.8) or Cloudflare (1.1.1.1) or possibly Docker’s embedded DNS (127.0.0.11). For more info, see this question on StackOverflow.