🐳 Dockette #LetsEncrypt Automatic Robot Dockerfile
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Dockerfile
LICENCE.md
README.md
generate.sh
nginx.conf

README.md

LetsEncrypt

Docker Stars Docker Pulls

Create 90 days SSL certificates for given domains.

How it works

Container creates simple Nginx server listening on port 80 and waiting for letsencrypt validation.

It handles only requests to mydomain.com/.well-known, all other requests are forbidden.

server {
    listen 80;
    server_name $DOMAINS;

    location ^~ /.well-known/ {
        root /var/www/acme-certs;
    }

    location / {
        return 403;
    }
}

Usage

docker run \
    -p 80:80 \ 
    -v /srv/certs/mydomain.com:/var/www/certs \
    --name le \
    -e DOMAINS='mydomain.com www.mydomain.com' \
    -e EMAIL='my@email.tld' \
    dockette/letsencrypt:latest

You can add -it for interactive shell.

After that you will have copies of certificates in your /srv/certs/mydomain.com/ folder.