Skip to content

reallyreally/docker-nginx-certbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

really/nginx-certbot

Docker container providing nginx with lua and certbot for Let's Encrypt SSL certificates

GitHub issues GitHub license Docker Pulls

Launch nginx using the default config:

docker run --name nginx-certbot \
  --restart=always \
  --net=host \
  -v /data/nginx/conf.d:/etc/nginx/conf.d:rw \
  -v /data/letsencrypt:/etc/letsencrypt:rw \
  -p 80:80 -p 443:443 -d \
  really/nginx-certbot

Certbot

Easily add SSL security to your nginx hosts with certbot. docker exec -it nginx-certbot /bin/sh will bring up a prompt at which time you can certbot to your hearts content.

or

docker exec -it nginx-certbot certbot --no-redirect --must-staple -d example.com

It even auto-renew's for you every day!