https://github.com/kdpuvvadi/cf-ddns
Lightweight Docker image for cloudflare DDNS
https://github.com/kdpuvvadi/cf-ddns
cloudflare ddns ddns-client ddns-script docker docker-compose
Last synced: 4 months ago
JSON representation
Lightweight Docker image for cloudflare DDNS
- Host: GitHub
- URL: https://github.com/kdpuvvadi/cf-ddns
- Owner: kdpuvvadi
- License: mit
- Created: 2022-12-27T10:58:28.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-02T06:29:04.000Z (about 1 year ago)
- Last Synced: 2025-10-11T14:17:59.614Z (9 months ago)
- Topics: cloudflare, ddns, ddns-client, ddns-script, docker, docker-compose
- Language: Shell
- Homepage:
- Size: 21.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker Cloudflare DDNS
[](https://github.com/kdpuvvadi/cf-ddns/actions/workflows/build.yml)
DDNS service for cloudflare
## Creating a Cloudflare API token
To create a CloudFlare API token for your DNS zone go to [https://dash.cloudflare.com/profile/api-tokens](https://dash.cloudflare.com/profile/api-tokens) and follow these steps:
* Click Create Token
* Provide the token a name, for example, cloudflare-ddns
* Grant the token the following permissions:
* `Zone` - `Zone Settings` - `Read`
* `Zone` - `Zone` - `Read`
* `Zone` - `DNS` - `Edit`
* Set the zone resources to:
* Include - All zones
## Deployment
```shell
docker run -d --name ddns \
--restart=always \
-e TOKEN=token \
-e DOMAIN=example.com \
-e CNAME=test \
kdpuvvadi/cf-ddns:latest
```
With `docker-compose`
```yaml
version: "3"
services:
ddns:
container_name: ddns
image: kdpuvvadi/cf-ddns:latest
environment:
TOKEN: 'Token Here'
DOMAIN: 'example.com'
CNAME: 'cname'
restart: unless-stopped
```
## LICENSE
Licensed under [MIT](/LICENSE)