This repository deploys the favonia/cloudflare-ddns Docker container. It automatically updates the Cloudflare DNS record with the current public IP address of the homelab.
- A working Docker host.
- A Cloudflare API Token with
Zone.DNS.EditandZone.Zone.Readpermissions for the target domain.
- Prepare the deployment directory:
sudo mkdir -p /opt/cloudflare-ddns
sudo chown $USER:$USER /opt/cloudflare-ddns
cd /opt/cloudflare-ddns
# Clone this repository
git clone git@github.com:sdrwtf-labs/cloudflare-ddns-deployment.git .- Configure the environment variables:
cp .env.example .envEdit the .env file and provide your real Cloudflare API token.
- Start the service:
docker compose up -d- Verify the logs to ensure the IP was updated successfully:
docker compose logs -f cloudflare-ddn