Skip to content

dockette/letsencrypt

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

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.

About

🐳 Dockette #LetsEncrypt Automatic Robot Dockerfile

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published