The documentation asks to populate ALLOWED_HOSTS in .env during the Run phase. This will have no effect inside the docker container. ALLOWED_HOSTS should be either
- Placed before building the dockerfile so that
.env gets copied inside the container and carries the ALLOWED_HOSTS value or
- Be used inside
docker.env.
2 appears to be a better approach in my opinion.
The documentation asks to populate
ALLOWED_HOSTSin.envduring the Run phase. This will have no effect inside the docker container.ALLOWED_HOSTSshould be either.envgets copied inside the container and carries theALLOWED_HOSTSvalue ordocker.env.2 appears to be a better approach in my opinion.