Sign inSign up

cmunroe/caddy-dns

By cmunroe

•Updated about 19 hours ago

Building Caddy with DNS ACME support.

Image
0

50K+

cmunroe/caddy-dns repository overview

⁠Caddy-DNS

Prebuilt Caddy⁠ Docker images with DNS provider modules for automatic HTTPS via Let's Encrypt DNS-01 challenges.

Each image contains a standard Caddy build with a single caddy-dns⁠ plugin compiled in, ready to use.

⁠Quick Start

docker pull cmunroe/caddy-dns:cloudflare-latest
# docker-compose.yml
services:
  caddy:
    image: cmunroe/caddy-dns:cloudflare-latest
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - ./Caddyfile:/etc/caddy/Caddyfile
      - caddy_data:/data
    environment:
      - CF_API_TOKEN=your-token-here

volumes:
  caddy_data:
# Caddyfile
example.com {
    tls {
        dns cloudflare {env.CF_API_TOKEN}
    }
    respond "Hello, world!"
}

⁠Image Defaults

  • Base image: Official caddy:{version} Alpine image
  • Architectures: linux/amd64, linux/arm64
  • Ports: 80 (HTTP), 443 (HTTPS), 443/udp (HTTP/3)
  • Config path: /etc/caddy/Caddyfile
  • Data path: /data (TLS certificates are stored here — mount a volume to persist)
  • Config path: /config (auto-generated JSON config)
  • User: Runs as non-root by default (same as upstream Caddy image)

⁠Tag Format

Each DNS provider has two tags:

FormatExampleDescription
{provider}-{version}cmunroe/caddy-dns:cloudflare-2.11.2Pinned to a specific Caddy version
{provider}-latestcmunroe/caddy-dns:cloudflare-latestAlways the most recent build

Use the versioned tag for production deployments. Use latest for development or when you want automatic updates.

⁠Available Providers

acmedns, acmeproxy, alidns, azure, bunny, cloudflare, desec, digitalocean, directadmin, dnsimple, dnsexit, dode, duckdns, dynu, dynv6, easydns, edgeone, gandi, glesys, godaddy, googleclouddns, he, hetzner, infomaniak, inwx, ionos, linode, loopia, luadns, mailinabox, metaname, mythicbeasts, namecheap, netcup, netnod, nfsn, njalla, oraclecloud, ovh, porkbun, powerdns, rfc2136, route53, scaleway, tencentcloud, thelittlehost, timeweb, unifi, vultr

⁠Documentation

For per-provider setup guides including Caddyfile configuration, credential instructions, and advanced options, see the full documentation in the source repository:

https://gitlab.com/cmunroe/caddy-dns⁠

Each provider has its own setup guide at builds/{provider}/README.md with configuration examples sourced from the official caddy-dns⁠ repositories.

⁠Current Version

Caddy: 2.11.2

⁠Source

This project is maintained at gitlab.com/cmunroe/caddy-dns⁠. Issues and feature requests should be filed there.

DNS provider modules are developed by the caddy-dns⁠ community on GitHub.

Tag summary

Content type

Image

Digest

sha256:9ed911af6…

Size

41 MB

Last updated

about 19 hours ago

docker pull cmunroe/caddy-dns:desec-latest