Your nginx container is restarting all the time, I assume this is because you did not create the SSL certificates as mentioned in the documentation.
You will need to either manually provide the certificates or run the certbot container to generate them for you, otherwise you can use the without-nginx
yaml file. The Mattermost application server’s port (8065) is not exposed to the host when the nginx container is also running.