This container allows the creation/renewal of Let's Encrypt certificates automatically
282
Let's Encrypt is a certificate authority that launched on April 12, 2016 that provides free X.509 certificates for Transport Layer Security (TLS) encryption via an automated process designed to eliminate the current complex process of manual creation, validation, signing, installation, and renewal of certificates for secure websites.
Start the Letsencrypt instance as follows:
docker run -it -d -p 80:80 -v ./ssl:/etc/letsencrypt --name letsencrypt hoadx/letsencrypt
A docker-compose.yml looks like this:
letsencrypt:
container_name: letsencrypt
image: hoadx/letsencrypt
ports:
# - "80:80"
- "443:443"
volumes:
- ./ssl:/etc/letsencrypt
docker exec -it letsencrypt \
certbot \
certonly \
--manual \
--email [email protected] \
--agree-tos \
--manual-public-ip-logging-ok \
--domains example.com
docker exec -it letsencrypt \
certbot \
certonly \
--standalone \
--preferred-challenges tls-sni-01
#--preferred-challenges http-01
--email [email protected] \
--agree-tos \
--manual-public-ip-logging-ok \
--domains example.com
Content type
Image
Digest
Size
20.1 MB
Last updated
over 9 years ago
docker pull hoadx/letsencrypt