Sign inSign up

brettinternet/cloudflare-ddns

By brettinternet

Updated 26 days ago

An Alpine image to update git mirrors

Image
0

482

brettinternet/cloudflare-ddns repository overview

Cloudflare DDNS

A simple cronjob to update a Cloudflare record with an IPv4 address.

docker run --rm \
  -e RUN_ON_STARTUP="true" \
  -e CLOUDFLARE_API_TOKEN="${TOKEN}" \
  -e CLOUDFLARE_RECORD_NAME="ipv4.example.com" \
  -e POST_COMMANDS_SUCCESS="curl -d 'Run successful 😎' ntfy.sh/mytopic" \
  -e CRON="*/10 * * * *" \
  --name cloudflare-ddns \
  ghcr.io/brettinternet/cloudflare-ddns

These environment variables are also available in the run.sh as slots for pre/post commands:

PRE_COMMANDS: |-
  curl -d "Oh boy, here we go again..." https://healthchecks.io/start

POST_COMMANDS_SUCCESS: |-
  curl -d "Woah it actually worked!" ntfy.sh/mytopic

POST_COMMANDS_FAILURE: curl -d "oh no 🫨" ntfy.sh/mytopic

POST_COMMANDS_INCOMPLETE: /config/uh-oh.sh

POST_COMMANDS_EXIT: curl -d "All done!" ntfy.sh/mytopic

Tag summary

Content type

Image

Digest

sha256:4478c4171

Size

13.2 MB

Last updated

26 days ago

docker pull brettinternet/cloudflare-ddns