Traefik Not Working

It would be great to get a better diagnose than "not working". What’s not working? Are all containers up? Did you check Traefik dashboard?

Usually you would just expose ports on Traefik, not on the other services/containers. Otherwise Traefik security middlewares can be circumvented. Traefik should forward requests internally over Docker network, in which all ports are reachable.

Portainer should work with internal port 9000, check this post from this week.

Did you use docker stack deploy? Compare to working simple Traefik Swarm example.

might be shown during shutdown.