You are giving the transmission example, but are missing you transmission configuration.
Not sure what trimPrefix is supposed to do.
Note that Path(`/path`) will look for a fixed path, so /path/a will not work and the router will not match, use PathPrefix() instead if you want to use "deeper" paths, too.
Usually you would use a Docker network and attach all services to it. Make sure you use
networks
proxy:
name: proxy
to keep the network name consistent even when using multiple compose files. This makes it easier to use a fixed network name with traefik.docker.network.
Finally, make sure you have unique router names (like mywhoami) in labels when using multiple definitions: