Skip to content

Container for Dehydrated with Cloudflare Hook running as a cron job.

Notifications You must be signed in to change notification settings

Ingramz/docker-dehydrated-cloudflare-cron

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

docker-dehydrated-cloudflare-cron

Runs lukas2511/dehydrated with kappataumu/letsencrypt-cloudflare-hook as a cron job to acquire and update Let’s Encrypt certificates by DNS-01 challenge using CloudFlare as the DNS provider.

For using with single domain:

docker create \
  --name=dehydrated \
  -e 'CF_EMAIL=email@domain.tld' \
  -e 'CF_KEY=API_key' \
  -e 'CF_HOST=host.domain.tld' \
  -v /path/to/certs:/dehydrated/certs \
  ingram/dehydrated-cloudflare-cron

It is possible to generate one certificate containing alternative domains without resorting to creating domains.txt in the following manner:

-e 'CF_HOST=host1.domain.tld -d host2.domain.tld -d host3.domain.tld' \

For use with multiple domains and certificates, provide a domains.txt instead, CF_HOST environment variable needs to be unset or empty for this to work:

docker create \
  --name=dehydrated \
  -e 'CF_EMAIL=email@domain.tld' \
  -e 'CF_KEY=API_key' \
  -v /path/to/domains.txt:/dehydrated/domains.txt:ro \
  -v /path/to/certs:/dehydrated/certs \
  ingram/dehydrated-cloudflare-cron

Then start container, which will run update script once at start and once daily after that:

docker start dehydrated

Based on kmlucy/docker-dehydrated

About

Container for Dehydrated with Cloudflare Hook running as a cron job.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%