Skip to content

cloudflare DDNS updater swarm template

Description

This template runs my cloudflare dynamic DNS updater. It adjust the default container cron job from 5 minutes to 1 minute because i have failover WAN ports.

State Considerations for SWARM

none, this container can be cofigured entirely by env vars so i use those

Network Considerations

none, this need no special port mappings or other considerations consider using an secret to store the API

Placement Considerations

None, by default this template will result in a single replica

version: '3'
services:
  cloudflare-ddns:
    image: oznu/cloudflare-ddns:latest
    restart: always
    environment:
      - API_KEY=<redacted>
      - ZONE=mydomain.com
 #     - SUBDOMAIN=subdomain
      - PROXIED=false
      - CRON=*/1 * * * *