Skip to content

rodrigobaron/nginx-letsencrypt

Repository files navigation

Nginx-Letsencrypt Docker

An Nginx + Letsencrypt Docker container which self-sign the certificate and reverse-proxy to application.

How to use:

To generate certificate each time (WARN: you can generate only 10 certificates in time span of 3 hours, check the rate limit / IP):

docker run -e DOMAIN=domain.example.com -e EMAIL=email@example.com -p 80:80 -p 443:443 -d rodrigobaron/nginx-letsencrypt:1.15.5-alpine

To use existing certificates:

docker run -v /opt/certs:/etc/letsencrypt -e DOMAIN=domain.example.com -e EMAIL=email@example.com -p 80:80 -p 443:443 -d rodrigobaron/nginx-letsencrypt:1.15.5-alpine

To change nginx configuration:

docker run -v /opt/nginx-config:/etc/nginx/conf.d/ -e DOMAIN=domain.example.com -e EMAIL=emailexample.com -p 80:80 -p 443:443 -d rodrigobaron/nginx-letsencrypt:1.15.5-alpine

Reference

This is an fork of Ilhicas work.

About

An Nginx + Letsencrypt Docker container which self-sign the certificate and reverse-proxy to application.

Topics

Resources

License

Stars

Watchers

Forks