Favicon of Caddy

Caddy

Run a secure and scalable web server with automatic HTTPS by default. Includes a powerful reverse proxy, static file server, and flexible configuration options.

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:

  • Advanced Reverse Proxy: Comes with built-in load balancing, active and passive health checks, circuit breaking, and support for dynamic backends, making it ideal for high-availability setups.
  • Flexible Configuration: Use the simple, human-readable Caddyfile for most use cases or leverage the powerful JSON API for fully automated and dynamic configuration management.
  • High-Performance Serving: Serve static files with a production-grade server that supports modern compression like Zstandard, or run PHP applications significantly faster with the integrated FrankenPHP module.
  • Extensible Architecture: Built in Go, Caddy is a single, dependency-free binary that can be extended with a wide range of plugins to fit any need.

Its robust, memory-safe design and proactive features like OCSP stapling ensure your sites remain secure, compliant, and highly available.

Directory Structure

caddy
caddy_config
caddy_data
site
.env
Caddyfile
docker-compose.yml

docker-compose.yml

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:/config

.env

TLS_EMAIL=admin@example.com
Categories:

Share:

Ad
Favicon

 

  
 

Similar to Caddy

Favicon

 

  
  
Favicon

 

  
  
Favicon