All Projects → koddr → example-static-website-docker-nginx-certbot

koddr / example-static-website-docker-nginx-certbot

Licence: MIT license
Example static website with Docker, Nginx and Certbot

Programming Languages

shell
77523 projects
CSS
56736 projects
HTML
75241 projects
Makefile
30231 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to example-static-website-docker-nginx-certbot

tutorial currency converter
This is a code repository for the corresponding article on Medium. In this tutorial, we will build educational application that is going to improve your overall knowledge of Async/Await.
Stars: ✭ 44 (+51.72%)
Mutual labels:  article, tutorial-code
Tutorial pdf generation
This is a code repository for the corresponding article on Medium. In this tutorial, you will learn how to generate dynamic PDFs using HTML code as a template.
Stars: ✭ 56 (+93.1%)
Mutual labels:  article, tutorial-code
CustomSegueDemo
Demonstrates encapsulation of a custom view controller transition into a UIStoryboardSegue subclass
Stars: ✭ 31 (+6.9%)
Mutual labels:  tutorial-code
certbot-dns-ovh
Certbot plugin to respond to DNS-01 challenges by updating the zone.
Stars: ✭ 20 (-31.03%)
Mutual labels:  certbot
dev-log
A comprehensive list of links and resources about anything programming related
Stars: ✭ 55 (+89.66%)
Mutual labels:  article
coding-notes
I'm compiling comprehensive coding tutorials for many different languages and frameworks! 🐲
Stars: ✭ 201 (+593.1%)
Mutual labels:  tutorial-code
Tutorials
Introductory tutorial notebooks for learning data science, as part of the Data Science in Practice materials.
Stars: ✭ 66 (+127.59%)
Mutual labels:  tutorial-code
wizard
🍳Wizardoc is a WEBAPP for managing documents and knowledge.
Stars: ✭ 57 (+96.55%)
Mutual labels:  article
How-to-use-Readline-in-NodeJS
⌨️ How to manipulate the terminal window using NodeJS
Stars: ✭ 20 (-31.03%)
Mutual labels:  article
RepSeP
Reproducible Self-Publishing - Demo Publications in the Most Common Formats
Stars: ✭ 14 (-51.72%)
Mutual labels:  article
Bubbly
Better SSL in Nginx in 10 minutes. Configuration files and setup scripts for Certbot.
Stars: ✭ 217 (+648.28%)
Mutual labels:  certbot
code with me
flutter app and code demos
Stars: ✭ 31 (+6.9%)
Mutual labels:  tutorial-code
FlutterNote
Easy to learn Flutter(Flutter 即学即用,Flutter 速成必备)
Stars: ✭ 22 (-24.14%)
Mutual labels:  article
SuluArticleBundle
Bundle for managing localized content-rich entities like blog-posts in the Sulu content management system
Stars: ✭ 35 (+20.69%)
Mutual labels:  article
database-engine
LSM-Tree Key-Value Store based on RocksDB
Stars: ✭ 47 (+62.07%)
Mutual labels:  tutorial-code
iOS-Read
the ios client for ios developer
Stars: ✭ 14 (-51.72%)
Mutual labels:  article
foth
Tutorial-style FORTH implementation written in golang
Stars: ✭ 50 (+72.41%)
Mutual labels:  tutorial-code
useful-playbooks
🚚 Useful Ansible playbooks for easily deploy your website or webapp to absolutely fresh remote virtual server and automation many processes. Only 3 minutes from the playbook run to complete setup server and start it.
Stars: ✭ 52 (+79.31%)
Mutual labels:  droplet
acme
Go client library implementation for ACME v2 (RFC8555)
Stars: ✭ 77 (+165.52%)
Mutual labels:  certbot
ARKitPhysics
ARKit Demo for Physics
Stars: ✭ 21 (-27.59%)
Mutual labels:  tutorial-code

Example static website with Docker, Nginx and Certbot

This is full project structure example of article How to dockerize your static website with Nginx, automatic renew SSL for domain by Certbot and deploy it to DigitalOcean?

Published on Dev.to @ 27 Jan 2020.

Requirements

  • Docker 19.x+

Usage

  • Clone this repository and go to folder:
git clone https://github.com/koddr/example-static-website-docker-nginx-certbot.git
cd example-static-website-docker-nginx-certbot
  • Change site.com to your domain at files:
./docker-compose.prod.yml
./webserver/nginx/default.conf
./webserver/nginx/site.com.conf
  • Push configured project to your own git repository.
  • Go to DigitalOcean account, create and configure new droplet (see screenshots in article).
  • Connect via SSH to your droplet and git clone your repo.
  • Check configuration of Certbot, start the process of obtaining SSL certificate in test mode:
make certbot-test DOMAINS="site.com www.site.com" [email protected]
  • If you see Congratulations!, all okay; start the process of obtaining SSL in production mode:
make certbot-prod DOMAINS="site.com www.site.com" [email protected]
  • And now, check Nginx config:
make deploy-test
  • No errors? Go your static website to production:
make deploy-prod
  • That's all!

Author

Article assistance

If you want to say «thank you»:

  1. Twit about article on your Twitter.
  2. Add a GitHub Star and make Fork to this repository.
  3. Donate some money to project author via PayPal: @paypal.me/koddr or LiberaPay.
  4. Join DigitalOcean at our referral link (your profit is $100 and we get $25).

Thanks for your support! 😘

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].