version: '3' services: traefik: ports: - '8080:8080' - '80:80' volumes: - '/path/to/config/traefik.yml:/etc/traefik/traefik.yml' - '/var/run/docker.sock:/var/run/docker.sock' image: 'traefik:v2.5'