Skip to content

ALLOWED_HOSTS in a docker container #246

Description

@Hritik14

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions