🔀
Networking & Server

Traefik

Modern reverse proxy and load balancer with auto HTTPS

🐧 Linux🍎 Mac🪟 Windows
Reviewed: Tested on: Kubernetes 1.29 · Terraform 1.8 · Ubuntu 22.04

What is this?

Traefik routes web traffic to your apps and can obtain HTTPS certificates automatically.

📁

Config files for Traefik

Where to create or edit the main configuration — paths below match the setup steps.

  • traefik.yml

    Location: Static config file or Docker mount

    Entry points, providers, and certificates

  • docker-compose labels

    Location: Compose service labels

    Dynamic routing rules (Docker provider)

📥

Step 01

Install Traefik

(01)Install Traefik

Linux
1docker run -d -p 80:80 -p 8080:8080 --name traefik traefik:v3.0
⚙️

Step 02

Configure Traefik

(01)Configure Traefik

Linux
1# traefik.yml + docker labels for auto-discovery
2# Dashboard: http://localhost:8080

Step 03

Verify

(01)Verify installation

Linux
1curl http://localhost:8080/dashboard/