serversideup/docker-certbot-dns-cloudflare
À propos
SSL certificates that renew themselves. Free Let's Encrypt certificates via Cloudflare DNS validation, saved to a volume any container can read for apps without ACME support. No config files, no exposed ports — just set a few environment variables and deploy.
Systèmes et infrastructureWhat you can do
- Automatic SSL certificate generation and renewal using Let's Encrypt
- No configs needed, this image generates the cloudflare.ini file for you
- Cloudflare DNS authentication for domain validation
- Customizable configuration via environment variables
Progression mesurée des étoiles
- in 24h
- 0
- in 7 days
- Historique en cours
- in 15 days
- Historique en cours
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
Original
Certbot Cloudflare DNS Docker Container
SSL certificates that renew themselves. Built on the official Certbot image with an improved user experience, this image generates free Let's Encrypt certificates via Cloudflare DNS validation, renews them automatically, and saves them to a volume any container can read — so even applications without Let's Encrypt support get always-valid certificates. No config files, no exposed ports — just set a few environment variables and deploy.
| Docker Image | Size |
|---|---|
| serversideup/certbot-dns-cloudflare |
Base Image
The image is based on certbot/dns-cloudflare:latest, providing a stable and up-to-date environment for running Certbot with Cloudflare DNS authentication.
Features
- Automatic SSL certificate generation and renewal using Let's Encrypt
- No configs needed, this image generates the cloudflare.ini file for you
- Cloudflare DNS authentication for domain validation
- Customizable configuration via environment variables
- Periodic certificate renewal checks
- Windows support (set
REPLACE_SYMLINKStotrue) - Native Docker health checks to ensure the server is running
Works great for orchestrated deployments
We designed this image to work great in orchestrated deployments like Kubernetes, Docker Swarm, or even in Github Actions. Look how simple the syntax is:
certbot:
image: serversideup/certbot-dns-cloudflare
volumes:
- certbot_data:/etc/letsencrypt
environment:
CLOUDFLARE_API_TOKEN: "${CLOUDFLARE_API_TOKEN}"
CERTBOT_EMAIL: "${CERTBOT_EMAIL}"
CERTBOT_DOMAINS: "${CERTBOT_DOMAINS}"
CERTBOT_KEY_TYPE: "rsa"
volumes:
certbot_data:
Environment Variables
The following environment variables can be used to customize the Certbot container:
| Variable | Description | Default Value |
|---|---|---|
CERTBOT_DOMAINS |
Comma-separated list of domains for which to obtain the certificate (example: example.com,www.example.com) |
- |
CERTBOT_CERT_NAME |
Explicit certificate name to update/modify (See official docs →) | - |
CERTBOT_EXPAND |
DEPRECATED: Expand existing certificate to add domains (use CERTBOT_CERT_NAME instead, see official docs →) | false |
CERTBOT_EMAIL |
Email address for Let's Encrypt notifications | - |
CERTBOT_KEY_TYPE |
Type of private key to generate | ecdsa |
CERTBOT_SERVER |
The ACME server URL | https://acme-v02.api.letsencrypt.org/directory |
CERTBOT_DEPLOY_HOOK |
A command to run after obtaining the certificate | - |
CLOUDFLARE_API_TOKEN |
Cloudflare API token for DNS authentication (see below how to create one) | - |
CLOUDFLARE_CREDENTIALS_FILE |
Path to the Cloudflare credentials file. | /cloudflare.ini |
CLOUDFLARE_PROPAGATION_SECONDS |
Wait time (in seconds) after setting DNS TXT records before validation. Useful if DNS propagation is slow. | 10 |
DEBUG |
Enable debug mode (prints more information to the console) | false |
PUID |
The user ID to run certbot as | 0 |
PGID |
The group ID to run certbot as | 0 |
RENEWAL_INTERVAL |
Interval between certificate renewal checks. Set to 0 to disable renewals and only run once. |
43200 seconds (12 hours) |
REPLACE_SYMLINKS |
Replaces symlinks with direct copies of the files they reference (required for Windows) | false |
Creating a Cloudflare API Token
[!WARNING]
Treat this token like a password. It will grant access to your Cloudflare account and can be used to modify DNS records.
- Go to the Cloudflare API Tokens page.
- Click on "Create Token".
- Click "Use template" for the "Edit Zone DNS" template.
- Change the token name (optional)
- Set a specific zone under "Zone Resources" (optional)
- Click on "Continue to summary".
- Click on "Create Token".
Usage
Pull the Docker image:
docker pull serversideup/certbot-dns-cloudflare:latestRun the container with the required environment variables:
[!CAUTION] Make sure to replace the
-v /path/to/your/certs:/etc/letsencryptwith a valid path on your host machine.
docker run \
-e CERTBOT_DOMAINS="yourdomain.com" \
-e CERTBOT_EMAIL="[email protected]" \
-e CLOUDFLARE_API_TOKEN="your-cloudflare-api-token" \
-v /path/to/your/certs:/etc/letsencrypt \
serversideup/certbot-dns-cloudflare:latest
[!TIP] For Wildcard Certificates, use the following order for the Docker instance health check:
domain.name, *.domain.name
- The container will automatically generate and renew the certificate.
Resources
- Discord for friendly support from the community and the team.
- GitHub for source code, bug reports, and project management.
- Get Professional Help - Get video + screen-sharing help directly from the core contributors.
Contributing
As an open-source project, we strive for transparency and collaboration in our development process. We greatly appreciate any contributions members of our community can provide. Whether you're fixing bugs, proposing features, improving documentation, or spreading awareness - your involvement strengthens the project.
- Bug Report: If you're experiencing an issue while using these images, please create an issue.
- Security Report: Report critical security issues via our responsible disclosure policy.
Need help getting started? Join our Discord community and we'll help you out!
Our Sponsors
All of our software is free and open to the world. None of this can be brought to you without the financial backing of our sponsors.
Platinum Sponsors
Silver Sponsors
Bronze Sponsors
Infrastructure Sponsors
These companies give us free access to the tools and infrastructure we use to build, test, and ship our open source projects. Their support helps our entire community.
Individual Supporters
About Us
We're Dan and Jay - a two-person team with a passion for open source products. We created Server Side Up to help share what we learn.
Hire Us
Get two senior Laravel experts who deliver quality code with predictable monthly pricing. Dan and Jay have 30+ years of combined experience building scalable Laravel applications.
- 🎯 Complete Laravel expertise - Full-stack development, CI/CD, database optimization, mobile apps
- 💰 Predictable pricing - Fixed monthly subscription, no hourly billing surprises, 40%+ savings
- ⚡ Maximum productivity - 90%+ development time, no meetings, results in days not weeks
- 🛡️ Risk-free - 7-day money-back guarantee, cancel anytime
Find us at:
- 📖 Blog - Get the latest guides and free courses on all things web/mobile development.
- 🙋 Community - Get friendly help from our community members.
- 🤵♂️ Get Professional Help - Get video + screen-sharing support from the core contributors.
- 💻 GitHub - Check out our other open source projects.
- 📫 Newsletter - Skip the algorithms and get quality content right to your inbox.
- 🐥 X (Twitter) - You can also follow Dan and Jay.
- ❤️ Sponsor Us - Please consider sponsoring us so we can create more helpful resources.
Our Products
If you appreciate this project, be sure to check out our other projects.
🛠️ Premium
- Self-Host Pro: Sell self-hosted software in minutes.
- Spin Pro: Production-ready Docker templates for shipping quickly.
🌍 Open Source
- serversideup/php: Supercharged PHP Docker images, based off the official PHP images.
- Spin: Docker Simplified. Deploy Anywhere. Zero Downtime. Any OS.
- Financial Freedom: Open source alternative to Mint, YNAB, and more.
- AmplitudeJS: Customize the design of any element of the HTML5 Audio Player.
- webext-bridge: Messaging in Web Extensions made easy. Batteries included.
- serversideup/ansible: Run Ansible anywhere with a lightweight and powerful Docker image.
📚 Books
- Building Browser Extensions: Build browser extensions for Firefox, Chrome, and more.
- Ultimate Guide To Building APIs & SPAs: Build web and mobile apps from the same codebase.
Explorer des projets similaires
Chargement…






