caddy-docker-proxy icon indicating copy to clipboard operation
caddy-docker-proxy copied to clipboard

DNS Challenge with duckdns.org

Open fwarren opened this issue 1 year ago • 0 comments

Will need a custom build with the duckdns plugin

ARG CADDY_VERSION=2.8.4
FROM caddy:${CADDY_VERSION}-builder AS builder

RUN xcaddy build \
    --with github.com/lucaslorentz/caddy-docker-proxy/v2 \
    --with github.com/caddy-dns/duckdns

FROM caddy:${CADDY_VERSION}-alpine

COPY --from=builder /usr/bin/caddy /usr/bin/caddy

CMD ["caddy", "docker-proxy"]

COPY --from=builder /usr/bin/caddy /usr/bin/caddy

Using a standard duckdns domain

    labels:
      caddy: domain.duckdns.org
      caddy.reverse_proxy: "{{upstreams http }}"
      caddy.tls.dns: duckdns xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

Using a subdomain based on a duckdns domain

    labels:
      caddy: test.domain.duckdns.org
      caddy.reverse_proxy: "{{upstreams http }}"
      caddy.tls.dns: duckdns xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
      caddy.tls.dns.override_domain: domain.duckdns.org

fwarren avatar Sep 23 '24 19:09 fwarren