Post

Cloudflare DynDNS updater as Docker service

To update the IP of my domain I use this image which automatically queries the IP my provider assigned me and send it to Cloudflare if it has changed.

1
2
3
4
5
6
7
8
9
10
11
services:
  cloudflare-ddns:
    container_name: cloudflare-dyndns
    image: oznu/cloudflare-ddns:latest
    network_mode: bridge
    restart: unless-stopped
    environment:
      - API_KEY=${CF_DNSAPI}
      - ZONE=${CF_Zone}
      - RRTYPE=A
      - PROXIED=false

To make use of ${variable} you have to create a .env file in the same folder and add all your variables like variable=value

This post is licensed under CC BY 4.0 by the author.