This is a custom-built, highly secure Docker image based on the official caddy:latest runtime. It has been compiled using xcaddy to include three powerful, enterprise-grade security modules, transforming Caddy from a standard web server into a robust Web Application Firewall (WAF) and bot-blocking proxy.
Additionally, this image features a native, built-in Docker Healthcheck, making it completely self-monitoring right out of the box.
github.com/mholt/caddy-ratelimitgithub.com/hslatman/caddy-crowdsec-bouncer/httpgithub.com/corazawaf/coraza-caddy/v2HEALTHCHECK using wget to ensure the server is actively routing traffic, not just holding a port open.The standard Caddy binary is fantastic for automatic HTTPS and reverse proxying, but it lacks native application-layer security. This image provides a Defense in Depth architecture with zero extra build steps required on your host machine:
Simply drop this image into your docker-compose.yml. Notice that you do not need a healthcheck block in your compose file—Docker reads it directly from the image automatically!
services:
caddy:
image: dhimanparas20/caddy:latest
container_name: custom-caddy
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./caddy_data:/data
- ./caddy_config:/config
Content type
Image
Digest
sha256:44e10c245…
Size
42.4 MB
Last updated
25 days ago
docker pull dhimanparas20/caddy