Sign inSign up

tekintian/alpine-certbot

By tekintian

Updated almost 3 years ago

Alpine Docker image for Certbot with Clouflare DNS challenge whti cloudflare api token supported

Image
0

583

tekintian/alpine-certbot repository overview

Alpine Docker image for Certbot with Clouflare DNS challenge

Certificates will be located at /certs. This will also attempt to renew every 12 hours.

Variables

VariablesDescription
CLOUDFLARE_EMAILYour Cloudflare account email (NOT recommended)
CLOUDFLARE_API_KEYYour Cloudflare Global API Key (NOT recommended)
CLOUDFLARE_API_TOKENYour Cloudflare API token (recommended)
DOMAINDomains for certificate requests, seperated by commas
EMAILEmail for certificate requests

Run Example

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

[email protected]

Tag summary

Content type

Image

Digest

sha256:95ef92364

Size

45.3 MB

Last updated

over 3 years ago

docker pull tekintian/alpine-certbot