Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 902 Bytes

README.md

File metadata and controls

42 lines (32 loc) · 902 Bytes

CloudFlare DNS Updater Service

This service updates all A records in all zones to the actual external ip.

Build

docker-compose -f docker-compose.yml build

Configure

Add your credentials to docker-compose.yml. It is enough to fill Email and ApiKey or just ApiToken

version: '3.4'

services:
  cloudflarednsupdater:
    image: cloudflarednsupdater
    container_name: cloudflarednsupdater
    build:
      context: .
      dockerfile: CloudFlareDnsUpdater/Dockerfile
    environment:
      - ASPNETCORE_ENVIRONMENT=Production
      - [email protected]
      - CloudFlare__ApiKey=yourApiKey
      # or
      - CloudFlare__ApiToken=yourApiToken
    restart: unless-stopped

Run

docker-compose -f docker-compose.yml up -d

Example output

Output