Invalid HTTP_HOST header: The domain name provided is not valid -- requests to dockerized django app using container name
In the docker-compose file, modify the service name for avoiding underscores in the Django service.
That's the only way that I know for avoiding the error as it's not a Docker limitation but a Django problem.