Alpine Docker image for Certbot with Clouflare DNS challenge whti cloudflare api token supported
583
Certificates will be located at /certs. This will also attempt to renew every 12 hours.
| Variables | Description |
|---|---|
| CLOUDFLARE_EMAIL | Your Cloudflare account email (NOT recommended) |
| CLOUDFLARE_API_KEY | Your Cloudflare Global API Key (NOT recommended) |
| CLOUDFLARE_API_TOKEN | Your Cloudflare API token (recommended) |
| DOMAIN | Domains for certificate requests, seperated by commas |
| Email for certificate requests |
get your cloudflare api token https://dash.cloudflare.com/profile/api-tokens
Note: recommend to use Cloudflare API Tokens ( Manage access and permissions for your accounts, sites, and products) , Not the cloudflare global api key, If you want to use cloudflare global api key , you must with the CLOUDFLARE_EMAIL.( Not Recommended! )
docker run --name certbot -e CLOUDFLARE_API_TOKEN="youcloudflareapitoken" \
-e EMAIL="[email protected]" \
-e DOMAIN="example.com,*.example.com" \
-v $PWD/letsencrypt:/etc/letsencrypt/ \
-v $PWD/certs:/certs \
tekintian/alpine-certbot: 2.4.0_cloudflare-dns
Content type
Image
Digest
sha256:95ef92364…
Size
45.3 MB
Last updated
over 3 years ago
docker pull tekintian/alpine-certbot