cloudflare DDNS updater swarm template¶
Description¶
- This template runs my cloudflare dynamic DNS updater.
- It adjusts the default container cron job from 5 minutes to 1 minute because i have failover WAN ports.
- The image is archived upstream. I still run it, pinned by digest.
State Considerations for SWARM¶
none, this container is configured by env vars, except the API key, which is a swarm secret. An entrypoint wrapper reads it at startup, see secrets.
Network Considerations¶
none, this needs no special port mappings or other considerations
Placement Considerations¶
None, by default this template will result in a single replica
compose.yml, 21 lines, 1 note
each in the code opens a note on that line. download compose.yml
- a shell reads the swarm secret into
API_KEY, thenexecs/init, the image's s6 entrypoint. a missing secret makes the container exit before/initruns.
This page started as a gist: the original, with its comments