Gitlab with traefik

Hello,
is it possible to use the gitlab docker registry with swarm and traefik dockers?

if I access gitlab with
https://git.mydomain.com, it works.
If I log in to https://registry.mydomain.com, the bad gateway error returns.

What can I do?

Best regards,