traefik
Installation
SKILL.md
Identity
- Docker image:
traefik:v3(current stable;traefik:latesttracks major version) - Binary install:
/usr/local/bin/traefik(when running outside Docker) - Static config:
/etc/traefik/traefik.yml(ortraefik.toml; YAML preferred) - Dynamic config dir:
/etc/traefik/dynamic/(watched by file provider) - Docker socket:
/var/run/docker.sock(mounted read-only into the Traefik container) - Dashboard port:
8080/tcp(default; disable or protect in production) - Logs: Docker:
docker logs traefik; Systemd:journalctl -u traefik - Distro install:
apt install traefik/ download binary from https://github.com/traefik/traefik/releases
Key Operations
| Operation | Command |
|---|---|
| Check dashboard (browser) | http://localhost:8080/dashboard/ (trailing slash required) |
| API: list routers | curl -s http://localhost:8080/api/http/routers | jq '.[].name' |
| API: list services | curl -s http://localhost:8080/api/http/services | jq '.[].name' |
| API: list middlewares | curl -s http://localhost:8080/api/http/middlewares | jq '.[].name' |
| API: check router detail | curl -s http://localhost:8080/api/http/routers/<name>@docker | jq . |
Related skills