Skip to content

denji/letsencrypt-certbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Let's Encrypt Certbot container

Docker image

Usage

Set up a Certbot container

See example compose file at /alpine/docker-compose.yml.

docker-compose up -d; docker-compose logs

Register new domain

docker exec -it example_certbot_1 \
    certbot \
    certonly \
    --standalone \
    --text \
    --email email@example.com \
    --agree-tos \
    --standalone-supported-challenges http-01 \
    --domains example.com

Explanation:

docker exec -it example_certbot_1             # enter composed container
    certbot                                   # run `certbot`
    certonly                                  # we write our own configs
    --standalone                              # auth method
    --text                                    # disable ncurses interface
    --email email@example.com                 # this is usually req'd
    --agree-tos                               # this is always req'd
    --standalone-supported-challenges http-01 # disable :443 check
    --domains example.com                     # the domain we are reg'ing