Traefik

Dynamic routing that actually works

2025-11-28


Configuring Nginx manually feels like doing taxes. You deploy a container, you want it accessible. Immediately.

Traefik solves this. It’s an edge router that listens to your infrastructure. It watches your Docker socket (or Kubernetes API), detects new services, and creates routes on the fly.

“Træfik (pronounced traffic) is a modern HTTP reverse proxy and load balancer that makes deploying microservices easy.” — Traefik Docs

Why it matters

Static configuration is dead. If you are setting up complex networks or routing traffic through custom ISP proxies, you need a gateway that adapts instantly.

Traefik handles the ingress automatically while you focus on where the traffic goes. It also handles Let’s Encrypt certificates without you lifting a finger.

The Setup

Don’t overthink it. A simple docker-compose gets you running.

version: '3'
services:
  traefik:
    image: 'traefik:v2.10'
    command:
      - '--api.insecure=true'
      - '--providers.docker=true'
    ports:
      - '80:80'
      - '8080:8080'
    volumes:
      - '/var/run/docker.sock:/var/run/docker.sock:ro'

Now, just add labels to your other containers. Traefik does the rest.

Stop wasting time reloading configurations.