I’m looking into setting up https for my local services. Everything is currently set up using the official caddy docker image.

I want to use now connect caddy to cloudflare to resolve the DNS 01. It looks like this is possible with a drop in replacement for caddy from either https://github.com/CaddyBuilds/caddy-cloudflare or https://github.com/serfriz/caddy-custom-builds

Is anyone here using these builds? Are they reliable? Is there an alternative I havent considered?

  • hellmo_luciferrari@lemmy.zip
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    5 hours ago

    I have a Dockerifle like that:

    ARG CADDY_VERSION=2.11.3
    FROM caddy:${CADDY_VERSION}-builder-alpine AS builder
    
    RUN xcaddy build \
        --with github.com/caddy-dns/cloudflare
    
    FROM caddy:${CADDY_VERSION}-alpine
    
    COPY --from=builder /usr/bin/caddy /usr/bin/caddy
    
    

    and the docker-compose.yml file I use:

    services:
      caddy:
        pull_policy: build
        build:
          context: .
    
    

    And to build new versions I modify the Dockerfile after doing a docker compose down, and then to build the new version I use docker compose up.