cloudflare-ddns
Automated Cloudflare DDNS updater for dynamic IP environments
687
Automatically update Cloudflare DNS records with your current IP address. This container provides a reliable solution for dynamic DNS management, perfect for home labs, self-hosted services, and Raspberry Pi deployments.
latest: Most recent stable build from main branchx.x.x: Specific version releases (e.g., 1.2.3)x.x: Minor version releases (e.g., 1.2)x: Major version releases (e.g., 1)sha-xxxxxx: Specific commit builds for tracking changesdocker run -d \
--name cloudflare-ddns \
--restart unless-stopped \
--env-file .env \
-v $(pwd)/config.json:/app/config.json:ro \
aribasadme/cloudflare-ddns
If you prefer to use docker-compose.yml
services:
ddns-updater:
image: aribasadme/cloudflare-ddns:latest
volumes:
- ./config.yaml:/app/config.yaml:ro
environment:
CF_DDNS_API_TOKEN: ${CF_DDNS_API_TOKEN}
CF_DDNS_ZONE_ID: ${CF_DDNS_ZONE_ID}
restart: unless-stopped
And then run:
docker compose up -d
Required environment variables in your .env file:
CF_DDNS_API_TOKEN: Your Cloudflare API token. Needs Edit DNS capabilityCF_DDNS_ZONE_ID: Your Cloudflare Zone IDCreate a config.yaml file with your domain settings. You can add multiple subdomains:
cloudflare:
- authentication:
api_token: "your-cloudflare-api-token"
zone_id: "your-zone-id"
subdomains:
- name: "@" # root (example.com)
proxied: false
- name: "foo" # foo.example.com
proxied: false
ttl: 300
Built with ❤️ for the self-hosting community.
Albert Ribas
Content type
Image
Digest
sha256:58dd4419a…
Size
54.6 MB
Last updated
about 1 year ago
docker pull aribasadme/cloudflare-ddns