Alpine Image containing dehydrated to create and automatically renew Certificates from Letsencrypt
1.4K
Dockerfile linksThe latest Tag will automatically be updated when the alpine base image is updated
Dehydrated can be used to create and automatically renew Certificates from Letsencrypt. It requires either Port 80 to be open or a dns entry to be set for each domain. This Version contains a hook for cloudflare to automatically reset dns entries for automatic renewal.
The crond Daemon automatically renews certificates under /etc/dehydrated/data once a day. It may be started using:
docker run --name Dehydrated \
-e "CF_EMAIL=Cloudflare Email" \
-e "CF_KEY=Cloudflare Global API Key" \
--volume /path/to/dehydrated/datadir:/etc/dehydrated/data \
--detach toendeavour/dehydrated-alpine
It requires only one volume to store the certifactes.
The inital setup requires the file domains.txt inside /path/to/dehydrated/datadir. It is also necessary to register a letsencrypt account using the following:
docker run --rm \
--volume /path/to/dehydrated/datadir:/etc/dehydrated/data \
-it toendeavour/dehydrated-alpine \
/usr/local/bin/dehydrated --register --accept-terms
Here is an example using docker-compose.yml:
dehydrated:
image: toendeavour/dehydrated-alpine
restart: always
environment:
CF_EMAIL: "Cloudflare Email"
CF_KEY: "Cloudflare Global API Key"
volumes:
- /path/to/dehydrated/datadir:/etc/dehydrated/data
Content type
Image
Digest
Size
29.4 MB
Last updated
about 6 years ago
docker pull toendeavour/dehydrated-alpine