Setting default rule template for ECS services

Hello everyone!

I'm attempting to set a default rule template for all ECS services using the container name. The goal is to map subdomains to matching container names. So far I've come up with the following using the documentation available.

--providers.ecs.defaultRule=Host({{ .Name }}

But even after launching Traefik with this parameter it seems to stick to the default rule template. I'd appreciate any insight into what the problem might be.

Also is there a convenient way to grab either the service name or the container name for the template ? .Name seems to contain both but I only want to use one of them.