HSTS with Traefik v2 and Docker-Compose

What is the recommended way of adding HSTS on Traefik v2 with Docker-Compose? Should I do it through the dynamic conf file or directly by labels per container?