Caddy reverse proxy for Docker containers, configured entirely through labels

AI-generated summary of reporting by GitHub Opensource Projects. Read the original for the full story.

Why it matters

Docker users who prefer Caddy over Traefik can now get Traefik-style label-driven routing: add containers and the proxy configures itself with zero downtime and automatic HTTPS.

Read this as

A free open-source tool called caddy-docker-proxy makes the Caddy web server manage Docker containers automatically. Instead of editing one shared configuration file every time you add or remove a service, each container declares its own rules using labels. The tool rewrites the config on the fly and reloads without dropping connections, while certificates for HTTPS websites are issued automatically. It suits developers running small-to-medium self-hosted setups.

This tool automates reverse-proxy configuration for Docker deployments, eliminating manual config edits that risk breaking existing services. It competes with Traefik, which has offered label-based routing for years, but keeps Caddy's automatic Let's Encrypt and ZeroSSL certificates. The tradeoff is routing logic scattered across Compose files rather than centralized. Best fit is small-to-medium deployments where services churn; large shops may prefer centralized control. No support or pricing details are given.

caddy-docker-proxy (Go, Docker images lucaslorentz/caddy-docker-proxy:ci-alpine) watches Docker events, regenerates an in-memory Caddyfile from container labels, and triggers graceful zero-downtime reloads. Labels map directly to Caddyfile concepts, sites, snippets, global options, with Go template functions like {{upstreams 80}} for dynamic backend resolution. Runs in server, controller, or standalone mode. Requires a --ipv6 Docker network for real client IPs; supports remote Docker hosts.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Caddy Docker Traefik Let's Encrypt ZeroSSL caddy-docker-proxy

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading