Share your full Traefik static and dynamic config, and docker-compose.yml if used.
Format your code with 3 backticks in front and after, or select the code and press </> . In yaml every space matters. And it makes it so much more readable for people trying to help you.
In the meantime, check this simple Traefik example and simple Swarm Traefik example.