Question

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

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: https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-18-04

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


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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

I found these instructions and followed them: https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-18-04

But certbot does see the Apache set up.

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

Thanks!