# Caddy

Caddy is an extensible web server and reverse proxy that serves Transport Layer Security (TLS) by default, making it simple to secure and route self-hosted services. It is open source and self-hosted, installable on Kubernetes (Helm), Unraid and Proxmox.

Canonical page: https://ourlocalhost.com/app/2685/caddy

## Description

Caddy is an extensible web server and reverse proxy that serves Transport Layer Security (TLS) by default, making it simple to secure and route self-hosted services.

## Platform availability

Available on 5 of 10 platforms: Unraid, ZimaOS, Proxmox, Helm, Any server.

## Health score

91/100 (Excellent), based on 4 of 4 factors.
- Maintained: 98 (last commit 54 days ago)
- Popular: 98 (76,148 GitHub stars)
- Easy to install: 75 (5 install platforms, install notes, Docker image)
- Light to run: 85 (512 MB minimum RAM)

## Links

- Kubernetes (Helm): https://artifacthub.io/packages/helm/alekc/caddy
- Unraid: https://ca.unraid.net/apps/caddy-14kz6cm1u1eqhe?q=caddy
- Proxmox: https://community-scripts.github.io/ProxmoxVE/scripts?id=caddy
- GitHub: https://github.com/caddyserver/caddy
- Official website: https://caddyserver.com

## Common questions

### How should I map ports for the hotio/caddy Docker image?

Use -p 80:8080 and -p 443:8443, and set WEBUI_PORTS to 8080/tcp,8443/tcp.

### How can Caddy reach another container when used as a Docker reverse proxy?

Put Caddy and the service on the same Docker network so Caddy can address the container directly.

### How does caddy-docker-proxy know which container to serve for a domain?

Add labels like caddy=example.com and caddy.reverse_proxy={{upstreams}} to each container. Without these labels, Caddy does not know which website to use or which backend container to send traffic to.

### What port binding permission do I need when building Caddy from source?

Caddy may try to bind to low ports unless otherwise specified in the config. On systems that require elevated privileges, you need to give the binary permission to bind those ports.

### Can multiple Caddy instances coordinate certificate management?

Yes, Caddy can coordinate certificate management across a cluster when using shared storage.

## Alternatives

- Apache HTTP Server: Open-source HTTP server offering cross-platform support, modular architecture, secure configuration, robust content delivery, and extensive…
- BunkerWeb: BunkerWeb is a self-hosted, open-source web application firewall and NGINX-based web server that protects services with secure-by-default s…
- Microsoft IIS: Internet Information Services (IIS) for Windows® Server is a flexible, secure and easy-to-manage Web server for hosting anything on the Web.
- Træfik Proxy: The Cloud Native Application Proxy Simplify networking complexity while designing, deploying, and operating applications.
- lighttpd: Lighttpd is a secure, lightweight web server that uses memory and CPU more efficiently than comparable servers, with FastCGI, CGI, authenti…
- nginx: Nginx is an HTTP web server, reverse proxy, content cache, load balancer, TCP/UDP proxy, and mail proxy server.
- tsdproxy: TSDProxy is a Tailscale proxy for Docker containers that automatically creates Tailscale machines for labeled containers, providing automat…

---
Source: Our Local Host (https://ourlocalhost.com/app/2685/caddy), the self-hosted and open-source app directory.
