Docker Community Forums

Share and learn in the Docker community.

Enabling SSL access to Docker Mautic container

Hi Docker community,

I’m still new to Docker. I have a Mautic container running in a DigitalOcean VPS host w/Apache websierver. I would like to enable SSL so that I can securely access my Mautic instance.

I have successfully installed LetsEncrypt on the host, but I am unsure of what the next steps should entail.

Do I somehow copy the SSL certificates (fullchain.pem and privkey.pem) from the host into a dedicated directory inside the container? Are these the only two files needed? Can I copy over when the container is still running?

Then in my docker-compose.yml, add a volume mapping the path to the certificates in host to the path to the certificates in the container, map port 4430 on the host to port 443 in the container, and then rebuild the container?

Is this anything else I need to do?

Thank you!

Hi, hhjchen.

(i am from Brazil, so, i ask sorry about my English :D)

You do need to put yours domain certs into the root dir of your application, and then, you need to specify theses files for your https server (express, nest, react, etc).

I was where u are now for much longer, so i know how stress it is, for some so simple to resolve.
So, if u still needing help with that, u can send-me a whatsapp message (+55 62 9 9277-6060), or an e-mail message ( then we can make a call sharing screen, for i can really give u a hand to solve this for good :slight_smile: .


Gabriel Ariza