Public | Automated Build

Last pushed: a month ago
Short Description
Create and renew letsencrypt certificates
Full Description

This image creates and renews letsencrypt ssl certificates.

To create the certificate run the container in interactive mode (docker run -ti ...)

The whole directory /etc/letsencrypt needs to be mounted as a volume (and be empty the first time the container is run)

First run

docker run -ti --restart=always \
    --name letsencrypt \
    -p 80:80 \
    -v /opt/letsencrypt/etc/letsencrypt/:/etc/letsencrypt lgpasquale/letsencrypt \
    -d subdomain1.domain1.com -d subdomain2.domain2.com

Following runs

docker run -d --restart=always \
    --name letsencrypt \
    -p 80:80 \
    -v /opt/letsencrypt/etc/letsencrypt/:/etc/letsencrypt lgpasquale/letsencrypt \
    -d subdomain1.domain1.com -d subdomain2.domain2.com

Make sure port 80 is correctly forwared to the container from all required domains

Docker Pull Command
Owner
lgpasquale
Source Repository

Comments (0)