Mattermost docker: connect() failed (111: Connection refused) while connecting to upstream

I think your port mappings are a bit mixed up here.
Your web container exposes the internal port 8080 as 8065, when it should take care of the ports 443 and 80 to the outside instead.

Can you share the output of docker ps so we can see the port mappings? Typically you would need to make sure that port 80 and port 443 are configured on the host level and forwarded to the web container (nginx). The app container listens on port 8065 already, so please check your nginx.conf and make sure it uses this port for the backend connection and not port 8000 as shown in the logs.

1 Like