Skip to content

Instantly share code, notes, and snippets.

@scyto
Created February 13, 2022 03:15
Show Gist options
  • Save scyto/e7b022a02554e0e3bb2751b718eeda2d to your computer and use it in GitHub Desktop.
Save scyto/e7b022a02554e0e3bb2751b718eeda2d to your computer and use it in GitHub Desktop.

Revisions

  1. scyto created this gist Feb 13, 2022.
    27 changes: 27 additions & 0 deletions cloudflareddns-template.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,27 @@
    ## 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 * * * *
    ```