Skip to content

jpradoar/docker-tls-nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NGINX + Certbot + Let's Encrypt (docker-tls-nginx)

Short description

Certbot and letsencrypt require a first validation over http (port 80). If you run an nginx configured with https and http auto-redirect to 443 letsencrypt can't validate your environment.
For this reason I created this simple docker-compose and script that deploy a docker compose with a step procedure to start, validate and deploy full TLS website.
By the way, the nginx.conf has a lot configuration to use nginx (and your web server) with some best practices.
Feel free to configure as you need ...and, obviously, send me a PR ;)

prerequisites:

  • a server with public ip
  • a dns associated to that IP address

How to run:

sh run.sh <DOMAIN> <EMAIL>

Example:

sh run.sh superduperdemo.com  jtan@mydomain.com