Traefik is a container-aware reverse proxy for exposing many applications through standard HTTP and HTTPS ports. It solves the problem of running multiple services without assigning each one a separate public port. section 20.0
Instead of maintaining a static proxy configuration for every application, Traefik watches the Docker Engine through the Docker API. Container labels describe routing rules, and Traefik builds its configuration while it runs. New deployments and configuration changes do not require restarting or reloading the proxy. section 20.4
A practical Traefik workflow includes:
- Start Traefik and open its dashboard to inspect the routers and proxied applications. section 20.4
Route a container with labels
A service can enable Traefik, match requests for whoami.local, and direct traffic to port 8080 using container labels. Deploying the service causes Traefik to discover it and build the router configuration automatically.
Figure 20.11 The Traefik dashboard shows you the configuration for all the apps being proxied.
Use the dashboard to inspect the routers and application configuration that Traefik has assembled. section 20.4
