Sign inSign up

berndinox/cloudflare-ddns

By berndinox

•Updated over 9 years ago

Cloudflare DDNS

Image
0

936

berndinox/cloudflare-ddns repository overview

⁠Outdated
⁠Testing ONLY
⁠No warranty

⁠cloudflare-ddns

This small application will keep a Cloudflare DNS record up to date with the Docker public IP address.

⁠Usage

⁠Basic
CF_HOST=xx.yy.com CF_API_KEY=xxxxx -e [email protected] go run cmd/cloudflare-ddns/main.go

⁠Docker

docker run -e CF_HOST=xx.yy.com -e CF_API_KEY=xxxxx -e [email protected] berndinox/cloudflare-ddns:latest

⁠Compose v3

version: '3'
services:
  dns:
    image: berndinox/cloudflare-ddns:latest
    environment:
      - CF_HOST=${DOMAIN}
      - CF_API_KEY=${KEY}
      - CF_API_EMAIL=${MAIL}
    deploy:
      replicas: 1

Added CURL to perform health checks from inside the container eg.:

    healthcheck:
      test: ["CMD", "curl", "-f", "http://${DOMAIN}"]
      interval: 20s
      timeout: 10s
      retries: 3

Soure: Copyright © 2016 Florian Bertholin See the LICENSE⁠ (MIT) file for more details.

Tag summary

Content type

Image

Digest

Size

93.9 MB

Last updated

over 9 years ago

docker pull berndinox/cloudflare-ddns