Skills / Engineering / Traefik Reverse Proxy

Traefik Reverse Proxy

Manage Traefik reverse proxy for local and container development. Routes domains to services, configures CORS and TLS, checks service health, and debugs connectivity — with dynamic Docker-label and file-based routing.

This skill operates Traefik: defining routers and services via Docker labels or file config, wiring middlewares (CORS, headers, redirects), configuring TLS and entrypoints, and debugging why a route returns 404 or a Bad Gateway. Use it to front local services or containerized apps with clean domains.

traefik reverse-proxy ingress docker devops

When to use

Use when configuring Traefik — routing domains to services via Docker labels or file config, adding CORS/TLS middleware, or debugging routing and connectivity issues.

Examples

Route a domain

Docker-label routing

Add Traefik Docker labels to my compose service so app.localhost routes to it on port 3000 with automatic TLS

Debug a 404

Fix routing

Traefik returns 404 for my api.localhost route even though the container is up — help me trace the router and service config to find the mismatch
Added to wishlist