How to setup SSL to a droplet with Docker w/ Apache Container

Posted October 7, 2021 104 views
SecurityDockerUbuntu 18.04

Hello, all.
We have a droplet with Ubuntu and a Docker containerized application (apache, mysql and socketio). We are trying to setup HTTPS to the droplet using this instruction:

However after installing certbot on the droplet itself and following the instructions on making changes to the virtual hosts files on our Apache container we are stuck.
We have the certbot running on the droplet, but it doesn’t see Apache configuration. If we login to the Apache container it doesn’t have access to the certbot app.

Please advice how we can achieve HTTPS to our Docker containerized application on Ubuntu droplet.

Thanks in advance

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Does anyone have any suggestions on how to set up a secure certificate with a droplet?

I found these instructions and followed them:

But certbot does see the Apache set up.

Is there something I am doing wrong? Any tips would be greatly appreciated.


by Kathleen Juell
by Erika Heidi
Let's Encrypt is a Certificate Authority (CA) that provides an easy way to obtain and install free TLS/SSL certificates, thereby enabling encrypted HTTPS on web servers. In this tutorial, you will use Certbot to obtain a free SSL certificate for Apache on Ubuntu 18.04 and set up your certificate to renew automatically.