title: Docker: how to set a custom domain name for container?
body: <p>I'm deploying with Docker a PHP server available at localhost:8085.</p>
  
  <p>How can I set Docker so that my container is available at a custom domain name (<a href="https://example.com" rel="noreferrer">https://example.com</a>) on my local network?</p>
  
  <p>In result, every user connected to the same WiFi network would access to the server using the URL <a href="https://example.com" rel="noreferrer">https://example.com</a> (pointing to localhost:8085).</p>