And I get stuck with the 4th step
after running this command, scripts/issue-certificate.sh
I get the following error message: docker: Error response from daemon: driver failed programming external connectivity on endpoint certbot (f1a8ea7c08d8139ab83a4d373a141bd1f9677f89e512ece94227b7ac6caca261): Error starting userland proxy: listen tcp4 0.0.0.0:80: bind: address already in use.
I guess this happens because 80 port is used by the proper Docker and I tried to pause the Docker container, but it did not help
I am not familiar with that issue-certificate.sh script but from the error message it looks like it’s trying to launch certbot and possibly a webserver in Docker and on port 80?
If that’s the case this might be your issue. You could try to run certbot directly on your Ubuntu host, at least that’s what I do, or maybe change the port for certbot inside that script. In that case you will likely need a corresponding nginx config for certbot pointing to the new port
Changing nginx away from port 80 isn’t the right approach in my opinion, because you want your incoming clients to talk to the nginx reverse proxy on port 80 and 443 (redirecting to Mattermost on 8065) and not to certbot.