title: How to set ALLOWED_HOSTS Django setting in production when using Docker?
body: <p>I always set my <code>ALLOWED_HOSTS</code> from an environment variable in Django. In my development <code>.env</code> I always set <code>ALLOWED_HOSTS=.localhost,.127.0.0.1</code> and in production <code>ALLOWED_HOSTS=mydomain.dom,my_ip_address</code></p>
  
  <p>Now I am currently getting acquainted with Docker, and the question is what is the value of the <code>ALLOWED_HOSTS</code> in production. Should it remain as localhost, since I understand localhost will refer to the host container or should I set it as my domain. I am using Nginx for reverse proxy to forward requests.</p>