Manage your cloud-native applications with a modern reverse proxy and load balancer designed for microservices. It simplifies networking by automatically discovering and configuring routes for your services as they are deployed. This dynamic approach eliminates the need for manual configuration files, making it ideal for complex, ever-changing environments.
It provides a comprehensive set of features to manage, secure, and observe your traffic:
services:
traefik:
image: traefik:v3.0
container_name: traefik
restart: unless-stopped
security_opt:
- no-new-privileges:true
ports:
- "80:80"
- "443:443"
- "8080:8080"
command:
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entryPoints.web.address=:80"
- "--entryPoints.websecure.address=:443"
- "--certificatesresolvers.letsencrypt.acme.tlschallenge=true"
- "--certificatesresolvers.letsencrypt.acme.email=${ACME_EMAIL}"
- "--certificatesresolvers.letsencrypt.acme.storage=/letsencrypt/acme.json"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./letsencrypt:/letsencryptACME_EMAIL=admin@example.comAuto-fetched about 19 hours ago
Auto-fetched about 19 hours ago