Nextcloud with Traefik over Docker tries connecting to Collabora through it's container name instead of it's domain

Take a look at this guide

Nextcloud Collabora integration