Open-source Caddy UI with guided publishing, certificate cleanup, TLS, SQLite, and MariaDB.
100K+
A modern, self-hosted web UI for Caddy — manage proxy hosts, redirections, SSL certificates, and advanced routes through a clean interface, without touching config files.
Open source under the Apache License 2.0. Free for personal, commercial, and internal use, with no hosted-service restrictions.
Lighthouse: Performance 99 · Accessibility 100 · Best Practices 100 · SEO 100
(measured on /login from Google's PageSpeed Insights — :v2.12.53 and later)
GitHub · Issues · CHANGELOG · Releases
docker pull applegater/caddyui:latest
SQLite is included and remains the zero-configuration default. For larger
installations, CaddyUI also supports MariaDB with concurrent connections,
platform-managed backups, and a built-in read-only SQLite → MariaDB migration
command. See the GitHub README's MariaDB (optional enterprise backend)
section and the included docker-compose.mariadb.yml overlay.
services:
caddy:
# Batteries-included Caddy: DNS providers, CrowdSec, rate limiting, layer4.
# Use `caddy:2-alpine` instead if you don't need those modules.
image: applegater/caddyui-caddy:stable
restart: unless-stopped
ports: ["80:80", "443:443", "443:443/udp"]
volumes:
- caddy_data:/data
- caddy_config:/config
environment:
CADDY_ADMIN: 0.0.0.0:2019
command:
- /bin/sh
- -c
- |
mkdir -p /config/caddy
[ -f /config/caddy/autosave.json ] || echo '{}' > /config/caddy/autosave.json
exec caddy run --config /config/caddy/autosave.json --resume --adapter json
caddyui:
image: applegater/caddyui:latest
restart: unless-stopped
ports: ["8080:8080"]
volumes:
- caddyui_data:/data # named volume — no chown needed
environment:
CADDY_ADMIN_URL: http://caddy:2019
volumes:
caddy_data:
caddy_config:
caddyui_data:
💡 Fresh install: On first boot Caddy has no saved config yet. The
commandabove seeds an empty{}config automatically so Caddy starts cleanly without any extra steps. Without--resume, admin-API pushes from CaddyUI would be lost on everydocker compose restart.
DNS-01 note: Managed ACME certificates require a Caddy build containing the matching
caddy-dnsprovider module, and the stockcaddy:2-alpineimage does not include those modules. The example above therefore uses the prebuiltapplegater/caddyui-caddy image — every DNS provider CaddyUI supports, the CrowdSec bouncer, rate limiting and layer4, on the current Caddy, foramd64andarm64. Prefer your own build?Dockerfile.caddy is its source, or supply any compatible Caddy build.
If you bind-mount a host directory to /data instead of using a named volume, the host directory must be owned by uid 10001 (the non-root user the container runs as):
sudo chown 10001:10001 /path/to/caddyui_data
The container will print a clear error message at startup if the directory isn't writable.
applegater/caddyui-caddy image, which now includes the module. A Layer4 proxy can also share port 443/80 (SSH or RDP for one hostname next to normal HTTPS) through a caddy-l4 listener wrapper.{env.…} / {file.…} placeholders; API token scopes are enforced everywhere; the login lockout works. Upgrade if you run user or viewer accounts. Bundled Caddy is now 2.11.7. Set CADDYUI_PUBLIC_URL if you use password reset or invitations.caddy-l4, and multi-arch images (linux/amd64 + linux/arm64) for both applegater/caddyui and applegater/caddyui-caddy.Full release notes: https://github.com/X4Applegate/caddyui/releases
CaddyUI v2.25 makes the source and state of fleet activity visible without replacing Caddy's normal logs:
The structured log listener should stay on a private Docker, LAN, WireGuard, or Tailscale network. CaddyUI adds named streams and does not redirect or suppress the node's existing container, journal, or file output.
CaddyUI v2.24 manages Caddy metrics without clobbering global options loaded elsewhere:
observe_catchall_hosts with target-side Caddy 2.11+ validation/metrics scrape target from SettingsKeep the Caddy admin endpoint private. Prometheus should reach it through the same Docker, LAN, loopback, WireGuard, or Tailscale network used by CaddyUI.
CaddyUI v2.21 adds independent rotating file access logs and CrowdSec request protection:
crowdsec and http.handlers.crowdsec modules before enabling protectionThe prebuilt applegater/caddyui-caddy image (built from the repository's Dockerfile.caddy) includes the required CrowdSec HTTP bouncer module. Custom Caddy images must include github.com/hslatman/caddy-crowdsec-bouncer/http.
CaddyUI v2.20.1 makes the Operations Unused custom certificates recommendation precise and controllable:
CaddyUI v2.20 organizes setup and daily work around operator intent and the active environment:
DNS automation is an optional readiness capability, so ordinary deployments can reach 100% without provider credentials. The guide stays available after initial setup and works as an ongoing environment checklist.
After an eleven-version perf + a11y wave (v2.12.38 → v2.12.48), CaddyUI's /login page hits 99/100/100/100 on Google PageSpeed Insights against a residential-ISP install:
/static/app.js so it caches across navigationsaria-current nav, label↔input pairing across every formOpt-in floating chat button that answers Caddy / TLS / DNS questions and writes production-grade Caddyfile snippets. Pick any backend in Settings → AI assistant:
| Backend | Best for | What you need |
|---|---|---|
| Ollama (local) | Fully-offline, runs on your GPU | Reachable Ollama; recommended qwen2.5:14b / gemma2:9b |
| Ollama Cloud | MoE models that won't fit on a homelab GPU | API key from ollama.com/settings/keys |
| Anthropic Claude | Strongest Caddy reasoning out of the box | API key from console.anthropic.com; Haiku 4.5 / Sonnet 4.6 / Opus 4.7 |
| OpenAI-compatible | OpenAI itself + OpenRouter, Groq, Together, vLLM, LM Studio | Base URL + API key + model |
AI auto-fill — describe what you want in natural language ("set up nextcloud at cloud.example.com pointing to nextcloud:80 with auto-SSL") and the assistant emits a create_proxy_host / create_redirection tool call. Click Apply on the confirmation card and the resource is created, the form is filled in for you, and Caddy is auto-synced. Every AI-driven exec writes an ai_tool_call activity-log entry. Works on Claude 4.x, GPT-4, qwen2.5+, llama3.1+, gemma2.
Inverse of CaddyUI's existing /caddyfile-import paste flow. Click Export Caddyfile on /proxy-hosts to download every enabled proxy host, redirection, and raw route on the active server as a single Caddyfile snapshot:
example.com {
@blocked path /.env* /wp-admin* /wp-login* /phpmyadmin* /.git/* /xmlrpc.php
respond @blocked 403
encode zstd gzip
header {
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
X-Content-Type-Options "nosniff"
...
}
reverse_proxy backend:8080 {
header_up X-Forwarded-Host {host}
header_up X-Forwarded-Proto {scheme}
header_up X-Real-IP {remote_host}
}
}
Per-host # Notes: block lists settings that don't fit cleanly into Caddyfile syntax (maintenance windows, basic-auth users, etc.) so users see what was elided rather than silently losing it on round-trip. Stable sort by hostname so two exports of the same DB diff cleanly. Same RBAC scoping as the existing JSON exports — admin gets the full server config, non-admin only their own resources.
Per-host export also available from the proxy-host edit page.
email and boolean email_verified: true — providers that don't send email_verified (e.g. Microsoft Entra ID) are not supported yetcaddy-ratelimit module built into Dockerfile.caddytls internal) (v2.46) — serve internal or local-network hosts from Caddy's built-in self-signed CA instead of ACME, no special Caddy build required*.example.com.No PEM upload, fake proxy upstream, or private-key transfer is required.
| Tag | What it points at |
|---|---|
:vX.Y.Z | Specific release, immutable. Recommended for production. |
:stable | The current release. Updated on every release. |
:latest | Kept in lockstep with :stable. |
:stable, :latest and the newest :vX.Y.Z all resolve to the same image.
:previewis gone. It was once a rolling per-commit channel. The tag was deleted from Docker Hub in October 2026 — if you still reference it, switch to:stableor pin a version.
Multi-arch: linux/amd64 + linux/arm64. Scratch base image, runs as non-root uid 10001.
applegater/caddyui-caddy patch tags: :vX.Y.Z-pNThe Caddy image carries one extra tag shape that applegater/caddyui does not.
applegater/caddyui-caddy is built from Dockerfile.caddy, whose final stage runs apk upgrade --no-cache so the image ships Alpine security fixes the upstream caddy:*-alpine base has not been rebuilt for yet. Those fixes only reach you when something rebuilds the image — and the release pipeline rebuilds it only when Dockerfile.caddy itself changes, which is the right rule for the plugin set but leaves the OS layer to go stale between releases.
A scheduled job therefore rebuilds and re-scans the image weekly. When the rebuild closes vulnerabilities and introduces none, it is published as:
| Tag | What it points at |
|---|---|
:vX.Y.Z | The CaddyUI release whose module set this image was built with. |
:vX.Y.Z-pN | Base-layer refresh N of that same release. Immutable. |
:stable / :latest | The newest refresh, i.e. the highest -pN of the newest vX.Y.Z. |
-pN means exactly one thing: only the base OS layer moved. So v2.68.8-p3 is v2.68.8's Caddy build on a newer Alpine layer — no Caddy upgrade, no plugin change, nothing to re-test at the application level. N counts up from 1 and is never reused.
That is enforced, not assumed. A refresh is built from the vX.Y.Z tag's own Dockerfile.caddy, and before it is published the pipeline diffs caddy list-modules --versions between the published image and the rebuild and refuses to publish on any difference. This matters because Dockerfile.caddy deliberately leaves several plugin versions unpinned, so a rebuild could otherwise pick up a new DNS provider or WAF release; a plugin change has to go through a normal release instead, where it gets a version number and a CHANGELOG entry. You can check it yourself:
docker run --rm --entrypoint /usr/bin/caddy applegater/caddyui-caddy:stable list-modules --versions
Why a counter and not a date: a date records when a build ran, not what went into it. Two builds on one day collide, a republish after a failed push needs a suffix anyway, and a date invites "newer must be safer" when the real question is which CVEs closed. The build time is recorded where it belongs, in the image's org.opencontainers.image.created label:
docker buildx imagetools inspect applegater/caddyui-caddy:stable --format '{{json .Image}}' \
| grep -o '"org.opencontainers.image.created":"[^"]*"'
What this does and does not guarantee. Because apk upgrade --no-cache is deliberately unpinned — that is how the image picks up fixes at all — two builds of the same source a week apart produce different images. So:
:vX.Y.Z-pN never changes under you, and :stable/:latest are moved to a digest only after that exact digest has been re-scanned and passed the gate — so the moving tags always point at bytes that were checked, not at a later unverified rebuild.Dockerfile.caddy alone. Rebuilding it yourself tomorrow will not reproduce today's digest. That stronger property would require pinning every Alpine package explicitly.Pin a digest if you need byte-level certainty, and :vX.Y.Z-pN if you want a stable, immutable name:
image: applegater/caddyui-caddy:v2.68.8-p2
# or, strictest:
image: applegater/caddyui-caddy@sha256:…
Every refresh is gated on a human review before it is published, and a rebuild that introduces a vulnerability — or that changes the Caddy module set — is blocked rather than shipped.
| Environment variable | Default | Purpose |
|---|---|---|
CADDY_ADMIN_URL | http://caddy:2019 | Caddy's admin API (the docker service name in the same compose network) |
CADDYUI_DB_DRIVER | sqlite | Database backend: sqlite or mariadb |
CADDYUI_DB | /data/caddyui.db | SQLite database path |
CADDYUI_DB_DSN | (none) | MariaDB DSN; required when CADDYUI_DB_DRIVER=mariadb |
CADDYUI_LISTEN | :8080 | HTTP listen address |
CADDYUI_INGEST_LISTEN | :9019 | Structured Caddy log ingest for analytics, certificate lifecycle, and temporary runtime streams (empty string disables all three) |
CADDYFILE_PATH | /etc/caddy/Caddyfile | Optional — path to a Caddyfile mounted into the CaddyUI container. Its (name) { ... } snippet definitions are auto-loaded so import <name> works in Advanced routes, Caddyfile paste import, and a proxy host's Advanced config; site blocks and global options in it are never used |
CADDYFILE_TENANT_SNIPPETS | (seeded once) | Optional — which CADDYFILE_PATH snippets non-admin accounts may import: names separated by commas or spaces, * for all, none for none. When unset, the first start of v2.68.18 or later shares exactly the snippets non-admin accounts' routes already import, and keeps that list; administrators can always import every snippet |
CADDYUI_PUBLIC_URL | (none) | Externally visible origin, e.g. https://caddyui.example.com. Used for the links in password-reset and invitation emails; without it the link is built from the request's Host header |
CADDY_ADMIN_USER / CADDY_ADMIN_PASS | (none) | Optional HTTP basic auth for Caddy's admin endpoint when proxied |
Apache License 2.0 — CaddyUI is open source.
The only conditions are the usual Apache-2.0 ones: keep the license and copyright notices, and state significant changes you make.
CaddyUI was previously distributed under the CaddyUI Source Available License 1.0. It was relicensed to Apache-2.0 in September 2026 — the old commercial-use and hosted-service restrictions no longer apply.
Open an issue on GitHub: https://github.com/X4Applegate/caddyui/issues
— Richard
Content type
Image
Digest
sha256:7d0e508fa…
Size
9.5 MB
Last updated
4 days ago
docker pull applegater/caddyui