DEV Community

Cover image for 🐳 How to dockerize your static website with Nginx, automatic renew SSL for domain by Certbot and deploy it to DigitalOcean?

🐳 How to dockerize your static website with Nginx, automatic renew SSL for domain by Certbot and deploy it to DigitalOcean?

Vic Shóstak on January 26, 2020

Introduction Welcome back, friends! 👋 There's a very big topic on our agenda... but don't worry, it'll be interesting and very informati...
Collapse
 
sonicoder profile image
Gábor Soós

Useful one with the SSL setup!

The only thing I can't get over is that is this complexity really necessary? My setup for frontend development seems like hammer compared to this :)

Collapse
 
acventor profile image
Roman Kosov

Thanks, very informative!

Collapse
 
espoir profile image
Espoir Murhabazi

Thanks for this, adding an SSL certificate to docker is always a trouble and gives me headaches and nightmares, let give this a try

Collapse
 
koddr profile image
Vic Shóstak

Oh, yeah.. I know, this is huge trouble at every project :D hope it helps!

Collapse
 
aimanzaheb profile image
aimanzaheb

If we are restarting nginx every 6 hours.. How will we keep our server 24 hrs up? Can't we update ssl certificate without restarting server?

Collapse
 
koddr profile image
Vic Shóstak

Hi, thanks for reply!

We are only restarting Nginx, not stopping him and starting again. For users (clients, which already connected) it goes unnoticed.