I'd like to give this a shot, never used traefic before.
Are your Traefik & Pi-Hole containers in the same docker-compose file? each docker-compose stack gets it's own segregated docker network, which you must connect to get inter-stack communication.