scancode.io icon indicating copy to clipboard operation
scancode.io copied to clipboard

ALLOWED_HOSTS in a docker container

Open Hritik14 opened this issue 3 years ago • 0 comments

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

  1. Placed before building the dockerfile so that .env gets copied inside the container and carries the ALLOWED_HOSTS value or
  2. Be used inside docker.env.

2 appears to be a better approach in my opinion.

Hritik14 avatar Jul 18 '21 00:07 Hritik14