caddy-docker-proxy
caddy-docker-proxy copied to clipboard
DNS Challenge with duckdns.org
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