I have a question for better practice. I have Debian 10 installed with NGINX, CertBot and Docker. In Docker I have a Portainer which I use to manage containers. It is accessible at portainer.domain.tld. Using LetsEncrypt, I have a certificate generated for the site and a reverse proxy directs traffic to the correct container. I would also like to run NextCloud, MailCow, WordPress and more on the same server in Docker.
What is the best way to install MailCow, configure a reverse proxy for mail.domain.tld, and work with the certificate?