Caddy with deSEC DNS & hslatman/caddy-crowdsec-bouncer Plugin
3.3K
Custom Caddy build with deSEC DNS & CrowdSec Bouncer
This image provides an automated, production-ready build of Caddy v2. It includes pre-installed plugins for DNS-01 challenges via deSEC and Layer 7 intrusion prevention via CrowdSec.
docker run -d \
--name crowdesec-caddy \
-p 80:80 \
-p 443:443 \
-e DESEC_TOKEN="your_token" \
-v $PWD/Caddyfile:/etc/caddy/Caddyfile \
-v caddy_data:/data \
-v caddy_config:/config \
dragonrider01598/crowdesec-caddy:latest
latest: The most recent stable build (recommended).sha-<git-ref>: Specific builds tied to the GitHub commit for version pinning.To enable the IPS/Bouncer, add the global options to the top of your Caddyfile:
{
crowdsec {
api_url http://crowdsec:8080
api_key {$CROWDSEC_LAPI_KEY}
ticker_interval 60s
}
}
Use this inside your site block to handle certificates via DNS (perfect for internal services):
*.example.com {
tls {
dns desec {$DESEC_TOKEN}
}
reverse_proxy localhost:8080
}
services:
caddy:
image: dragonrider01598/crowdesec-caddy:latest
container_name: crowdesec-caddy
restart: unless-stopped
ports:
- "80:80"
- "443:443"
environment:
- DESEC_TOKEN=your_desec_token
- CROWDSEC_LAPI_KEY=your_bouncer_key
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
- caddy_config:/config
volumes:
caddy_data:
caddy_config:
Content type
Image
Digest
sha256:c8af94911…
Size
40.2 MB
Last updated
4 months ago
docker pull dragonrider01598/crowdesec-caddy