Skip to content

Instantly share code, notes, and snippets.

@scyto
Created February 13, 2022 03:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scyto/e7b022a02554e0e3bb2751b718eeda2d to your computer and use it in GitHub Desktop.
Save scyto/e7b022a02554e0e3bb2751b718eeda2d to your computer and use it in GitHub Desktop.
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 * * * *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment