version: '3' services: traefik: container_name: traefik image: traefik:v2.2.1 command: - --providers.docker=true - --providers.docker.exposedbydefault=false - --api.insecure # Don't do that in production - --entrypoints.web.address=:80 ports: - 80:80 - 8080:8080 networks: - srv restart: unless-stopped volumes: - /var/run/docker.sock:/var/run/docker.sock:ro