Traefik v2 and docker compose: no default certificate

You are right, just tested it, seems you can not add static certificates via labels.

So this won't work:

    labels:
      - traefik.tls.stores.default.defaultCertificate.certFile=/certificates/example.com.pem
      - traefik.tls.stores.default.defaultCertificate.keyFile=/certificates/example.com.key
      - traefik.tls.certificates[0].certFile=/certificates/example.com.pem
      - traefik.tls.certificates[0].keyFile=/certificates/example.com.key

You need to use a provider.file either via command in docker-compose.yml or within a Traefik static configuration file.