Use the environment variables when connecting to the hub.

This enables docker orchestration tools to set the variables and control where the hub is running.

PS! Sad to see that you require a CLA for contributions, so just copy/paste or write the changes in the PR yourself. Use it fully as you want :)