How to correctly write the TLS data configuration at docker-compose file for TRFK-V2?

As far as I know you can not set a TLS cert in dynamic Docker label configuration.

In the above example, we've used the file provider to handle these definitions. It is the only available method to configure the certificates. (Source)

You can use providers.file in static config to load a dynamic configuration file:

#traefik-dynamic.yml
tls:
  options:
    default:
      minVersion: VersionTLS12
  certificates:
    - certFile: /path/example.com.crt
      keyFile: /path/example.com.key
    - certFile: /path/other.eu.crt
      keyFile: /path/other.eu.key