Letsencrypt Certbot which is automatically renewing the certificates
903
This image is based on certbot/certbot:latest with the following additions:
When you start the container the automatic renewal is executed in the intervals which are defined by the HOURS environment variable. If nothing is defined we renew every 6 hours.
If you dont have any cerificates yet you can run docker exec -it /bin/sh and execute the certbot command and get a manual certificate as documented in https://certbot.eff.org/docs/using.html
version: '3'
services:
certbot:
image: pschatzmann/certbot:latest
container_name: certbot
environment:
- HOURS=1
volumes:
- /srv/nginx:/var/www/html
- /etc/letsencrypt:/etc/letsencrypt
dns: 8.8.8.8
restart: always
Content type
Image
Digest
Size
33.8 MB
Last updated
almost 6 years ago
docker pull pschatzmann/certbot