1. The problem I’m having:
Hello. I was wondering how to get a Caddy plugin (specifically cloudflare) when deploying Caddyv2 with docker? Specifically because I’m using cloudflare origin ca certificates right now on my website but any browser says its not a trust-worthy certificate since it’s self-certified. However, I realized if I use let’s encrypt with dns-acme, it should provide a trustworthy certificate. I’m not sure it’s listed on the docs / I’m not understanding the docs properly. Basically, my question is is it possible to use a caddy+cloudflare with docker compose? If so, can someone explain to me how to achieve this with docker compose?
2. Error messages and/or full log output:
N/A
3. Caddy version:
Caddy v2.6.4 through docker compose
4. How I installed and ran Caddy:
a. System environment:
OS Ubuntu 22.04
Docker Compose
b. Command:
docker compose -f caddy-compose.yml up -d
c. Service/unit/compose file:
version: "3.7"
services:
caddy:
image: caddy:latest
restart: unless-stopped
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- $PWD/Caddyfile:/etc/caddy/Caddyfile
- $PWD/site:/srv
- caddy_data:/data
- caddy_config:/config
volumes:
caddy_data:
external: true
caddy_config:
d. My complete Caddy config:
N/A