Traefik
★ 65.4kAbout
Community Ratings
No ratings yetNew this week
Read recap →Features
- continuous configuration updates
- multiple load balancing algorithms
- HTTPS with Let's Encrypt
- circuit breakers
- retries
- web UI
- WebSocket/HTTP/2/gRPC support
- metrics
- access logs
- REST API
Details
- Last Updated
- Oct 30, 2026
- Created
- Sep 13, 2015
- Install Methods
- dockerbinarysource
- Requirements
- DockerKubernetesConsulEtcdRancher v2Amazon ECS
- API
- REST
- Runtime / Stack
- GoDocker
- Privacy & Independence
- Cloud: Optional
- Deployment
Deployment: Docker Compose ✓2 Containers — light hosting footprintRuns as 2 containers
Run Traefik yourself
Pick how much you want to manage.
HetznerBest match
Full control
A small server, then Docker Compose.
About 20 minutes with Docker
DigitalOcean
Full control
A small server, then Docker Compose.
About 20 minutes with Docker
OVHcloud
Full control
A small server, then Docker Compose.
About 20 minutes with Docker
Is this your project? Sponsor a listing
Run Traefik with Docker Compose
Compose file from the Traefik project repository.
2 services · infra: traefik
no resource limits declared
needs persistent storage (2 volumes)
docs/content/user-guides/docker-compose/acme-dns/docker-compose.yml · @ 29406d4 · scanned Jun 4, 2026
services:
traefik:
image: "traefik:v3.7"
container_name: "traefik"
command:
#- "--log.level=DEBUG"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entryPoints.web.address=:80"
- "--entryPoints.websecure.address=:443"
- "--certificatesresolvers.myresolver.acme.dnschallenge=true"
- "--certificatesresolvers.myresolver.acme.dnschallenge.provider=ovh"
#- "--certificatesresolvers.myresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory"
- "--certificatesresolvers.myresolver.acme.email=postmaster@example.com"
- "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
ports:
- "80:80"
- "443:443"
- "8080:8080"
environment:
- "OVH_ENDPOINT=xxx"
- "OVH_APPLICATION_KEY=xxx"
- "OVH_APPLICATION_SECRET=xxx"
- "OVH_CONSUMER_KEY=xxx"
volumes:
- "./letsencrypt:/letsencrypt"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
whoami:
image: "traefik/whoami"
container_name: "simple-service"
labels:
- "traefik.enable=true"
- "traefik.http.routers.whoami.rule=Host(`whoami.example.com`)"
- "traefik.http.routers.whoami.entrypoints=websecure"
- "traefik.http.routers.whoami.tls.certresolver=myresolver"
This file may be out of date. Check the Traefik documentation for current setup steps.
Tags
Track your self-hosted stack
Bookmark software to try, rate tools you've used, and keep your collection in one place.