Caddy is a modern, open-source web server designed for security and ease of use. Its most notable feature is automatic HTTPS by default. It automatically obtains and renews TLS certificates for all your sites, including internal hostnames and IP addresses, without any complex setup. This simplifies deploying secure websites and eliminates the manual work of certificate management.
Beyond its security features, Caddy is a versatile and powerful tool for any web infrastructure. Key capabilities include:
Its robust, memory-safe design and proactive features like OCSP stapling ensure your sites remain secure, compliant, and highly available.
services:
caddy:
image: caddy:2-alpine
container_name: caddy
restart: unless-stopped
ports:
- "80:80"
- "443:443"
- "443:443/udp"
environment:
- TLS_EMAIL=${TLS_EMAIL}
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./site:/srv
- ./caddy_data:/data
- ./caddy_config:/configTLS_EMAIL=admin@example.comAuto-fetched about 18 hours ago
Auto-fetched about 18 hours ago