title: Docker Hostnames not resolving in next.js prod but working in dev mode (Error: getaddrinfo ENOTFOUND)
body: <p>I'm running a next.js react app in a docker container. It's being composed with several other contains: one running Ghost (I'm using the API), one running mysql, and one running NGINX. I've got everything running in development mode.</p>
  
  <p>It works perfectly when run using <code>next dev</code>. But when I run it by doing <code>next build</code> and <code>next start</code>, I start seeing errors like <code>Error: getaddrinfo ENOTFOUND ghost-api</code> when I try to make server-side HTTP requests to my Ghost API container. I'm not entirely sure what the issue is but it seems like there's some issue with how Node is making requests after being built. I've been digging through a lot of Docker/Node questions trying to figure this one out but haven't had any luck.</p>
  
  <p>The entire project can be found here: <a href="https://github.com/MichaelWashburnJr/react-cms" rel="noreferrer">https://github.com/MichaelWashburnJr/react-cms</a></p>