Traefik Manager: The Self-Hosted Web UI for Traefik Routes, Middlewares, and Certificates
Traefik Manager gives Traefik operators a self-hosted control surface for routes, services, middlewares, certificates, plugins, logs, CrowdSec, backups, and remote servers without hand-editing YAML for every change.
Traefik Manager and the 2 a.m. YAML problem
Traefik Manager is a self-hosted web UI that turns Traefik's file-provider YAML into forms, wizards, health views, and backups. It is built for operators who want routes, services, middlewares, certificates, plugins, logs, and CrowdSec visible in one place without giving up Traefik itself.
Consider an illustrative composite incident. At 02:10, an operator adds a new internal app behind Traefik. The router rule is correct, the service points at the right container, and the certificate resolver name looks familiar. The change still fails because one middleware reference uses the wrong provider suffix, another route keeps an old TLS option, and nobody notices that a certificate in acme.json expires in three days. Traefik is doing exactly what the configuration says. The problem is that the configuration is scattered across files, labels, memory, and shell history.
That is the gap Traefik Manager targets. Traefik remains the reverse proxy. The missing piece is an operational surface where a route can be inspected as a route, a middleware can be built from a wizard instead of recalled from memory, and a certificate problem is visible before users report it. For homelabs and small production estates, that difference matters because the same person often writes the route, reviews the route, and gets paged for the route.
The important boundary is scope. Traefik Manager is not a hosted control plane and it is not a new proxy. It is a self-hosted admin layer for a Traefik installation you already run. Used with clear ownership rules, it makes the file provider easier to operate. Used as a public dashboard with broad write access, it becomes another privileged service to protect. This guide covers both sides: what it does, where it helps, how to install it, and where its limits are.
What Traefik Manager is and is not
Traefik Manager is a management layer above Traefik, not a replacement proxy. Traefik still terminates TLS, matches routers, runs middlewares, and forwards traffic; Traefik Manager edits supported dynamic configuration, reads live state from the Traefik API, and records backups before changes.
The project describes itself as a clean, self-hosted web UI for a Traefik reverse proxy, covering routes, middlewares, services, plugins, certificates, CrowdSec, and logs without editing YAML by hand. The practical meaning is narrower and more useful than the slogan. Traefik Manager writes the dynamic configuration files it manages, reads runtime objects from the Traefik API, and presents provider-owned objects as read-only views. That model keeps Traefik's own configuration model intact instead of inventing a separate database of routes.
It also differs from Traefik's built-in dashboard. The dashboard is primarily an inspection surface for routers, services, and middlewares that Traefik has already loaded. Traefik Manager is an editing and operations surface: create a route, attach middlewares, inspect health, check certificates, review logs, restore a backup, and manage remote Traefik hosts through agents. If you compare it with a simpler proxy UI, the comparison should be honest. A tool such as Caddy optimises for a compact config model and automatic HTTPS; our Caddy web server guide covers that trade-off. Traefik Manager keeps Traefik's provider model and makes the file-provider part easier to run.
What it is not matters for production fit. It does not make Docker labels editable from a form, it does not rewrite Kubernetes Ingress or Gateway API objects, and it does not turn Traefik into a full GitOps system. If your routes are owned by Kubernetes controllers, Helm charts, or label-driven Compose files, Traefik Manager can still show you live state, but the write path belongs to those systems. The tool is strongest when the file provider is the deliberate source of truth for the routes you want humans to edit.
How Traefik Manager works under the hood
Traefik Manager works by writing Traefik dynamic configuration files and reading runtime state from the Traefik API. The file provider reloads routers, services, and middlewares when watched files change, while provider tabs stay read-only because Docker labels, Kubernetes objects, and key-value stores are owned elsewhere.
Traefik separates static configuration from dynamic configuration. Static configuration, usually traefik.yml, defines entrypoints, providers, certificate resolvers, API and dashboard settings, logging, plugins, and other startup behaviour. Dynamic configuration defines routers, services, middlewares, TLS options, and certificates that can change while Traefik runs. Traefik Manager sits across that split carefully: dynamic files are the normal write path, while the static config editor is optional, separately mounted, and applied with a Traefik restart.
The file provider is the hinge. When Traefik is configured with a file filename or directory and watch enabled, changes to dynamic files are reloaded without restarting the proxy. Traefik Manager mounts that same dynamic file, edits it with ruamel.yaml so comments and Go templates are preserved, and writes a timestamped backup before a change. That preservation detail is not cosmetic. A proxy file often carries comments explaining why a header, redirect, or allowlist exists. A tool that rewrites the whole file and strips that context creates review debt even when the route works.
The read path is just as important. Traefik Manager connects to the Traefik API, commonly http://traefik:8080 inside a private Docker network, to show live routers, services, middlewares, provider tabs, health, and version information. Provider tabs for Docker, Kubernetes, Swarm, Nomad, ECS, Consul, Redis, etcd, ZooKeeper, HTTP, and external file data are read-only views. That is the correct boundary: a UI should not silently edit objects owned by another controller. For Kubernetes estates, the same ownership discipline appears in our Kubernetes best practices guidance: the controller that owns the object should remain the thing that changes it.
Traefik Manager routes, services, and middlewares
Traefik Manager covers the daily routing objects operators touch most: HTTP, TCP, and UDP routes; load-balancer, weighted, mirroring, and failover services; and middleware wizards for auth, headers, redirects, CORS, rate limits, prefixes, error pages, and TLS client certificates, with reusable templates.
Routes are the centre of the product. A route form handles domains, backends, entrypoints, load balancing, middlewares, priority, sticky sessions, health checks, per-route certificate resolvers, editable tls.domains, and TLS profiles. That matters because a production route is rarely just a host rule. It is a host rule plus an entrypoint, a backend pool, a TLS decision, a middleware chain, and a failure behaviour. Traefik Manager makes those pieces visible together instead of forcing the operator to reconstruct them from separate YAML blocks.
Services get their own treatment. You can build a load balancer, weighted, mirroring, or failover service on its own, or balance a route across raw addresses and existing services with weights. Services that Traefik Manager did not write stay read-only until you take them over, and takeover records ownership without touching the file. That is a sane migration path for an existing dynamic.yml: inspect first, adopt deliberately, and avoid a surprise rewrite of hand-maintained services.
Middlewares are where YAML memory usually fails. Traefik Manager provides 30 wizards covering auth, rate limiting, headers, CORS, redirects, prefixes, error pages, TLS client certificates, and related shapes, plus a raw YAML editor and reusable templates. The value is not that forms are prettier than YAML. The value is that the form knows the config shape, shows where a middleware is used, and warns when another provider still references it. A middleware that is referenced by a Docker label as name@file can be counted through the Traefik API even though Traefik Manager cannot edit that label. Deleting it anyway is possible, but the UI makes the consequence explicit.
Traefik Manager certificates, plugins, logs, and CrowdSec
Traefik Manager adds the operational views YAML hides: certificate expiry from acme.json, plugin usage and update flags, access-log analytics, CrowdSec attacks and decisions, background backend checks, notifications, and a route map that follows a request from entrypoint to backend.
Certificates are a good example. Traefik can obtain and renew certificates through ACME resolvers, but the operational questions are different: which certificates exist in acme.json, when do they expire, which ones no router serves, and which ones belong to a resolver that no longer exists in static config? Traefik Manager's Certificates tab answers those questions when acme.json is mounted. Removing certificates is deliberately gated: the file must be writable and a restart method must be set because Traefik reads acme.json at startup. That gate is appropriate because acme.json contains private keys, not just public certificate metadata.
Plugins, logs, and CrowdSec complete the operating picture. The Plugins view shows Traefik plugins with the middlewares using them, supports guided installation, and flags newer catalog versions. Access-log analytics turn raw requests into status, latency, path, client, and service views. CrowdSec views show attacks, bans, and decisions, with optional local GeoIP resolution rather than sending client IPs to a third-party lookup service. Background monitoring checks routes, certificate expiry, Traefik and agent reachability, CrowdSec activity, GeoIP freshness, and new releases, then sends alerts through destinations such as Discord, Slack, ntfy, Gotify, Pushover, Pushbullet, Telegram, UnifiedPush, or generic webhooks.
These features move Traefik Manager from editor to operations console. The route map is especially useful during triage because it draws the request path from entrypoint through router and middlewares to service. When a user reports a 502, the first question is not which YAML file to open. The first question is where the request stopped. That is the same triage habit described in our production monitoring and alerting guide: classify the failure before changing configuration.
Benefits and advantages of Traefik Manager
The main advantage of Traefik Manager is change safety at homelab speed: guided forms reduce YAML shape errors, backups and diffs make rollback explicit, health and certificate views surface drift early, and one UI can operate several Traefik hosts through agents.
The first benefit is fewer shape errors. Traefik dynamic configuration is expressive, but it is also easy to write a plausible block with the wrong nesting, a missing provider suffix, or a middleware name that exists in the wrong file. Wizards and forms constrain the common cases. The raw YAML editor remains available for unusual shapes, so the tool does not trap advanced users in a form-only model.
The second benefit is rollback discipline. Every change writes a timestamped backup first, and git backup can push configuration with commit history, diffs, and one-click restore. That does not replace infrastructure as code, but it makes manual operations auditable. For teams that already treat proxy config as code, the right pattern is to decide which system is authoritative and use the other as evidence. Our infrastructure as code best practices guide covers the same principle for state and plan review: a change path is only safe when ownership and review are explicit.
The third benefit is visibility. Dashboard cards, provider tabs, route maps, certificate expiry, access logs, CrowdSec decisions, and background checks answer questions that otherwise require several commands and log searches. The fourth benefit is reach: a lightweight Go agent can run beside Traefik on remote hosts, so one UI can manage multiple servers without SSH or a VPN. The fifth benefit is adoption cost. The project is GPL-3.0, self-hosted, and deployable by installer, Docker Compose, Podman, native Linux, Unraid, umbrelOS, or agent modes. Those are operational advantages, but they only count if the security model in the next section is respected.
| Benefit | Operational effect | Evidence to check |
|---|---|---|
| Guided route and middleware forms | Fewer invalid YAML shapes and missing references | Route saves, Traefik API shows router healthy |
| Backup before every change | Rollback becomes a restore action, not a memory exercise | Backup timestamp exists before the edit |
| Certificate and health views | Expiry and backend drift surface before user reports | Certs tab shows days remaining and unused certs |
| Route map and logs | Triage starts from request path, not file hunting | Entrypoint, router, middleware, service chain is visible |
| Remote agents | One UI operates several Traefik hosts | Active server switcher changes every tab consistently |
Limitations and production fit for Traefik Manager
Traefik Manager fits best when your writable routes live in Traefik's file provider and the UI sits on a trusted network. It does not edit Docker labels or Kubernetes objects, API keys carry full session-level power, and the static config editor needs a carefully chosen restart method.
The write boundary is the main limitation. Only the file provider configuration mounted into Traefik Manager is writable. Routers from Docker labels, Kubernetes CRDs, Ingress, Gateway API, Swarm, Nomad, ECS, Consul Catalog, Redis, etcd, ZooKeeper, Consul KV, or HTTP providers are shown through the Traefik API and remain read-only. That is not a missing feature to work around; it is an ownership rule. If a route is generated by a controller, edit the controller input. If a route is hand-owned in dynamic.yml, Traefik Manager is a reasonable editor.
The security model is the second limitation. Traefik Manager is designed to run behind a reverse proxy on a trusted network. The security documentation warns against exposing port 5000 directly to the internet. Built-in password auth uses bcrypt, TOTP is available, OIDC can be the sole login, CSRF protection and rate limiting are built in, and secrets are encrypted at rest. Even with those controls, the UI can rewrite live proxy configuration. Treat it as an admin plane. API keys are per-device and hashed, but a valid key has the same access as a signed-in session; there are no per-key scopes. That fact should decide where keys are stored and which scripts receive them.
The static config editor is the third limitation. Editing traefik.yml from the UI requires a read-write mount and a restart method. A socket proxy limits restart access, a poison-pill signal file avoids Docker API access, and direct socket access is the broadest option. If you do not need static editing, do not mount traefik.yml read-write and do not set a restart method. Production fit is therefore conditional: strong for file-provider estates, homelabs, and small teams that need a safe manual control surface; weaker for label-only Docker estates, Kubernetes-owned ingress, or organisations that require every proxy change to pass through Git review before it can exist.
Step by step: prepare Traefik for Traefik Manager
Before installing Traefik Manager, make Traefik boring: enable the file provider with watch on the dynamic file you will mount, expose the Traefik API only on a private network, confirm entrypoints and certificate resolvers, and snapshot traefik.yml, dynamic.yml, and acme.json.
Start by deciding the file layout. Traefik Manager's simplest Docker path mounts one dynamic file at /app/config/dynamic.yml. Traefik must read that same file through its file provider. If Traefik uses a directory instead, keep the directory layout deliberate and use Traefik Manager's multiple-config settings only when you understand which file each route should be written to. A route saved to a file Traefik is not watching is a successful UI action and a failed deployment.
A minimal static config for an existing Traefik should name the entrypoints, enable the file provider with watch, configure the certificate resolver, and keep the API on an internal entrypoint or private network. Adjust names to your installation; the point is the contract, not the exact labels.
Before you continue, back up traefik.yml, dynamic.yml, and acme.json outside the containers. Confirm DNS for the first hostname you will route, confirm the backend is reachable from Traefik's network, and decide whether Traefik Manager will be reached only on the LAN or through its own HTTPS route. Docker networking mistakes are common here; if containers cannot resolve each other by name, fix the network before blaming the UI. Our Docker container architecture guide explains the container and network boundaries that make this step predictable.
Step by step: install Traefik Manager with Docker Compose
Install Traefik Manager beside an existing Traefik by mounting the same dynamic.yml into both containers, persisting its config and backups directories, joining a shared Docker network, starting the container, reading the generated password, and pointing the setup wizard at the Traefik API.
Create a shared Docker network if Traefik and Traefik Manager do not already share one. The setup wizard will use a Traefik API URL such as http://traefik:8080, so container-name resolution must work from inside the Traefik Manager container. Keep port 5000 private during first setup. COOKIE_SECURE=false is acceptable only for the initial local HTTP step; set it to true when the UI is served over HTTPS.
Start the service and read the generated password from the log. Then open the UI on your private network and complete the setup wizard. Set the Traefik API URL to the internal address, confirm the dynamic config path, add your base domains, choose the default certificate resolver, and enable only the tabs whose mounts you have actually provided. Certificates need acme.json; logs need the access log; plugins and static config need traefik.yml plus STATICCONFIGPATH. Mounting a file alone does not reveal every tab, so check Settings after the wizard instead of assuming the UI guessed correctly.
If you prefer the installer path, the project provides a tm CLI installer that can set up Traefik and Traefik Manager together, Traefik Manager alone, or a remote agent. For an existing production Traefik, the Compose path is easier to review because every mount and network is explicit. Review the Traefik Manager Docker guide before adapting paths, especially for named volumes where ACMEJSONPATH and ACCESSLOGPATH may be needed.
Step by step: add your first Traefik Manager route
Create the first Traefik Manager route as a controlled change: choose the config file, add the backend service, set the host rule and websecure entrypoint, attach the certificate resolver, add security headers and rate limiting, save, then verify health, logs, and the route map.
Pick a low-risk hostname first. In the Routes tab, create an HTTP route for app.corp.internal, select the websecure entrypoint, and point it at a backend service such as http://app:3000. If the backend is a container, Traefik must share a network with it or reach it by a routable address. Add a health check path only if the application has a real health endpoint; a fake health check creates confidence without evidence. Attach the certificate resolver that exists in static config, then add a security-headers preset and a rate-limit middleware before saving.
After saving, verify in three places. First, Traefik Manager should show the router and service without a problem verdict. Second, the route map should show entrypoint, router, middlewares, and service in the expected order. Third, a real request should return the application response and appear in access logs with the expected status. If the route is HTTPS, confirm the certificate name and expiry in the Certificates tab after issuance. Do not stop at a green form; the deployment is complete only when Traefik has loaded the route and traffic proves it.
The saved dynamic configuration should resemble the following shape. Traefik Manager may preserve your existing file structure and comments, but the router, service, and middleware relationships should be equivalent.
Once the first route is proven, repeat the pattern for the next service and resist bulk edits. The backup created before the first save is your rollback evidence. Test restore on a non-critical route before you depend on it during an incident. A backup that has never been restored is only a file with a reassuring name.
Harden and operate Traefik Manager safely
Operate Traefik Manager like an admin plane, not a dashboard toy: serve it over HTTPS, set COOKIE_SECURE=true, enable TOTP or OIDC, use per-device API keys, mount files read-only where possible, prefer socket proxy or poison-pill restarts, and test backup restore before you need it.
Put the UI behind HTTPS as soon as first setup is complete. Traefik Manager can create a self route through Settings, or you can route it with labels in your existing Traefik setup. Remove the direct port publication when the HTTPS route is proven, set COOKIE_SECURE=true, and enable TOTP or OIDC. If an external identity provider already protects the UI through forward auth, understand the bypass risk: anything that reaches Traefik Manager directly on the Docker network or LAN port bypasses that layer. Network reachability is part of authentication, whether the login page admits it or not.
Mount discipline decides blast radius. acme.json and access logs should be read-only unless you deliberately enable certificate removal. traefik.yml should stay unmounted or read-only unless you need plugins or static config editing. For static restarts, prefer the socket proxy or poison-pill method over direct Docker socket access. The socket proxy limits Traefik Manager to restart operations; poison pill writes a signal file and lets Traefik's healthcheck terminate the process so the restart policy starts it again. Direct socket access is simpler and broader, which is exactly why it should be the last choice.
Operations should include notifications, backup retention, and update review. Configure alerts for backend down, degraded pools, certificate expiry, Traefik or agent reachability, CrowdSec activity, and new releases. Use per-device API keys for the mobile app and scripts, revoke keys by device when a phone or automation host is retired, and never paste API keys into tickets or shell history. The same secret-handling discipline applies to automation credentials generally; our GitHub Actions security best practices guide covers the CI side of least-privilege tokens and OIDC. For Traefik Manager, the rule is simpler: every credential that can rewrite routes is a production credential.
Traefik Manager troubleshooting and decision checklist
When a Traefik Manager change does not go live, check the file path first, then file-provider watch, Traefik API reachability, provider ownership, certificate resolver names, and restart method. Use the tool when those boundaries are clear; keep GitOps or labels authoritative when they are not.
Most failures are boundary failures. The UI saved to one dynamic.yml while Traefik watches another. The file provider is enabled without watch, so Traefik never reloads the change. The Traefik API URL resolves on the host but not inside the Traefik Manager container. The route belongs to Docker labels or Kubernetes, so Traefik Manager correctly shows it read-only. The certificate resolver name in the route does not exist in static config. The static editor saved traefik.yml, but no restart method is configured, so Traefik keeps running the old startup configuration.
Use the matrix below before reinstalling anything. Reinstalling a management UI rarely fixes a provider ownership problem, and it can destroy the evidence you need.
| Symptom | First check | Fix |
|---|---|---|
| Route saves but never appears | Same dynamic file mounted into Traefik and Traefik Manager | Align host path, container path, and CONFIG_PATH |
| Route appears only after Traefik restart | File provider watch setting |
Set watch: true and confirm file notifications work |
| Provider tab is empty | Traefik API URL from inside the container | Use shared network and http://traefik:8080 or correct API address |
| Route is visible but read-only | Provider suffix such as @docker or @kubernetescrd |
Edit the owning labels, CRD, Ingress, or controller input |
| Certificate does not issue | Resolver name, DNS, challenge entrypoint | Match route resolver to static config and verify ACME logs |
| Login loops behind HTTPS | COOKIE_SECURE and proxy hops |
Set COOKIESECURE=true; set PROXYFIX_HOPS only for controlled hops |
| Static change has no effect | Restart method and read-write mount | Configure socket proxy, poison pill, or socket restart deliberately |
The decision is straightforward. Use Traefik Manager when Traefik's file provider is your writable routing layer and you want safer manual operations with backups, visibility, and guided forms. Keep labels, Kubernetes objects, or Git review authoritative when those systems own the routes. In both cases, Traefik Manager can still earn its place as a read surface for health, certificates, logs, and provider state. The tool is valuable because it respects Traefik's model while making that model easier to operate. It becomes risky only when its write access is broader than the network and identity controls around it.
Frequently Asked Questions
What is Traefik Manager used for?
Traefik Manager is used to operate a Traefik reverse proxy from a self-hosted web UI. It creates and edits supported routes, services, and middlewares, shows certificates, plugins, logs, CrowdSec activity, backups, notifications, and remote Traefik servers without hand-editing YAML for every change.
Does Traefik Manager replace Traefik or the Traefik dashboard?
No. Traefik still routes traffic, terminates TLS, runs middlewares, and loads providers. Traefik Manager is an editing and operations layer above it. The built-in Traefik dashboard is mainly for inspection, while Traefik Manager adds guided editing, backups, certificate views, logs, CrowdSec, notifications, and multi-server management.
Can Traefik Manager edit Docker labels or Kubernetes routes?
No. Traefik Manager writes the dynamic configuration files it manages through the file provider. Docker label routes, Kubernetes CRD, Ingress, Gateway API, Swarm, Nomad, ECS, Consul, Redis, etcd, ZooKeeper, and HTTP provider objects are read through the Traefik API and remain read-only in the UI.
How do I install Traefik Manager with Docker Compose?
Mount the same dynamic.yml that Traefik watches into Traefik Manager at /app/config/dynamic.yml, persist /app/config and /app/backups, join a shared Docker network with Traefik, start the container, read the generated password from the logs, and set the Traefik API URL in the setup wizard.
Is Traefik Manager safe to expose on port 5000?
Do not expose port 5000 directly to the internet. Run Traefik Manager behind HTTPS on a trusted network, set COOKIE_SECURE=true, enable TOTP or OIDC, use per-device API keys, and mount files read-only where possible. The UI can rewrite live proxy configuration, so network reachability must be controlled.
What happens when Traefik Manager saves a route?
Traefik Manager writes the supported dynamic configuration file after creating a timestamped backup. If Traefik's file provider watches that file, Traefik reloads the route without a restart. You should then verify the router in the UI, follow the route map, send a real request, and check access logs.
Traefik Manager vs Nginx Proxy Manager or Caddy: when should I choose it?
Choose Traefik Manager when you already run Traefik and want a UI for its file-provider routes, middlewares, services, certificates, logs, and CrowdSec. Choose Nginx Proxy Manager or Caddy when you want a simpler proxy model and do not need Traefik's provider system, middleware depth, or dynamic routing behaviour.