First check traefik logs for errors and warnings.
Then check the traefik dashboard to make sure it all looks good.
My advice then would be to enable accesslog and use accesslog.format=json format option too. Try some more requests and make sure the requests are using the expected router.
Thanks for helping me cakiwi!
I have this configuration now, I fixed the competing labels so now this is the Traefik config for my container:
Its still not working. As I can see in the debug log, nothing catches my request. I have no warnings or errors. In the Traefik dashboard, I can see that this router exists, and the middleware connected to this router, so I cant see why it is not working properly.
This is the debug log:
time="2021-10-26T14:38:31Z" level=debug msg="Creating middleware" entryPointName=web middlewareType=RedirectRegex middlewareName=test-redirectregex@docker routerName=test-redirect@docker
time="2021-10-26T14:38:31Z" level=debug msg="Setting up redirection from ^https://domain.com/(.*) to https://anotherdomain.com/" routerName=test-redirect@docker entryPointName=web middlewareType=RedirectRegex middlewareName=test-redirectregex@docker
time="2021-10-26T14:38:31Z" level=debug msg="Adding tracing to middleware" entryPointName=web routerName=test-redirect@docker middlewareName=test-redirectregex@docker