Docker-compose installation problem - 'bad host' from web server

I’m following the docker-compose installation.

All of the docker containers are running, and I verified that the host name in the config files matches my hostname.

When I connect to the web server, I get ‘Bad Host’.

The log file from the traefix container is:

“GET / HTTP/2.0” 500 9 “-” “-” 1 “hostname-checker@file” “-” 5ms

Any hints?

I just had the same problem when upgrading a docker-compose setup from Mender 2.x to the latest 3.7.3 release.

Despite following the instructions laid out in the prod.yml file, I always got “Bad Host” when trying to access the S3 server at s3.myhost.com.
Turned out that you now need to add s3.myhost.com to ALLOWED_HOSTS next to mender.myhost.com.
My full line now is:

ALLOWED_HOSTS: mender.myhost.com,s3.myhost.com

Hope that helps somebody else who runs into this problem.

1 Like