How can I configure the hostname of a service that includes a dot?

How can I configure the hostname of a service that includes a dot?

Traefik v2.2
Docker provider
labels