Caddy Web Server
Required reverse proxy with automatic HTTPS
Required reverse proxy service that powers all DAMP sites with automatic HTTPS certificates.
Caddy is essential for routing traffic to your sites and provides automatic SSL certificate generation.
Docker Configuration
Image: caddy:latest
Ports:
- 80:80 # HTTP
- 443:443 # HTTPS
Volumes:
- damp_caddy_data:/data
- damp_caddy_config:/configDAMP identifies the service using Docker labels. Container name is auto-generated by Docker.
Port Configuration
Default ports:
- HTTP:
80(host) →80(container) - HTTPS:
443(host) →443(container)
If either port is occupied on the host machine, DAMP automatically uses the next available port. Check the DAMP interface to see the actual ports assigned.
What Caddy Handles
- Automatic SSL certificate generation for .local domains
- Reverse proxy routing requests to your sites
- HTTP/2 support
- Configuration updates without downtime
Connection Information
From Host Machine (Windows)
HTTP:
http://localhostHTTPS (with valid certificate for .local domains):
https://myproject.localFrom Project Containers
Use the container name or ID shown in the DAMP interface.
# Access Caddy API (if enabled)
curl http://[container-name]:2019/config/Replace [container-name] with the actual container name displayed in DAMP.
Certificate Management
Caddy automatically generates SSL certificates for all .local domains. View certificates in DAMP's Services page.
DAMP displays:
- Domain name
- Expiration date
- Certificate status
Trust Certificates
To trust Caddy's CA certificate on your system:
- Click "Install Certificate" in DAMP
- Windows will prompt for UAC elevation
- Certificate installed to system trust store
- Browse to https://yoursite.local without warnings
How Sites Use Caddy
When you create a site, DAMP automatically:
- Updates Caddy configuration
- Creates reverse proxy rules
- Generates SSL certificate for the domain
- Reloads Caddy (zero downtime)
┌─────────────────────────────────────────┐
│ Browser: https://myproject.local │
└────────────┬────────────────────────────┘
│
↓
┌─────────────────────────────────────────┐
│ Caddy │
│ - Terminates SSL │
│ - Reads Caddyfile config │
│ - Routes to correct container │
└────────────┬────────────────────────────┘
│
↓
┌─────────────────────────────────────────┐
│ Site DevContainer │
│ - Receives plain HTTP on port 80 │
│ - PHP application responds │
└─────────────────────────────────────────┘Caddyfile Location
Caddy configuration is stored in the damp_caddy_config volume:
/config/caddy/CaddyfileDAMP automatically manages this file.