Skip to content

A Docker DDNS/DynDNS (Dynamic DNS) alternative for your domains set up in Cloudflare.

License

Notifications You must be signed in to change notification settings

M4RC0Sx/ClouDDNSflare

Repository files navigation

ClouDDNSflare

A Docker DDNS/DynDNS (Dynamic DNS) alternative for your domains set up in Cloudflare. Access your home network from the outside with your own domain without worrying about dynamic IP! Forget about third-party services.

Usage

You just need to start a Docker container:

Docker run

docker run -d \
--restart always \
-e PUBLIC_IP_PROVIDER=https://api.ipify.org \
-e REFRESH_MINUTES=5 \
-e CF_API_URL=https://api.cloudflare.com/client/v4 \
-e [email protected] \
-e CF_API_KEY=cf_global_api_key \
-e CF_ZONE=yourdomain.com \
-e CF_RECORD=subdomain.yourdomain.com \
m4rc0sx/clouddnsflare:latest

Docker compose

version: '3.8'

services:
  clouddnsflare:
    image: m4rc0sx/clouddnsflare:latest
    restart: always
    environment:
      PUBLIC_IP_PROVIDER: https://api.ipify.org
      REFRESH_MINUTES: 5
      CF_API_URL: https://api.cloudflare.com/client/v4
      CF_API_EMAIL: [email protected]
      CF_API_KEY: cf_global_api_key
      CF_ZONE: yourdomain.com
      CF_RECORD: subdomain.yourdomain.com
docker compose up -d

Env variables

Option Description Type Default
PUBLIC_IP_PROVIDER The URL of the public IP provider String https://api.ipify.org
REFRESH_MINUTES The interval in minutes to refresh the IP address. Be careful with CF rate limits! Integer 5
CF_API_URL The URL of the Cloudflare API String https://api.cloudflare.com/client/v4
CF_API_EMAIL Your Cloudflare account email String ""
CF_API_KEY Your Cloudflare API key String ""
CF_ZONE Your Cloudflare Zone name String ""
CF_RECORD The DNS record you want to update String ""

About

A Docker DDNS/DynDNS (Dynamic DNS) alternative for your domains set up in Cloudflare.

Resources

License

Stars

Watchers

Forks

Packages

No packages published