Nextcloud + Collabora + Traefik: Could not establish connection to the Collabora Online server.

it has nothing to do with Docker. example.com is an invalid domain. CODE integration requires valid certificates for full functionality - in most cases the easiest way is to use real domain and LE TLS certificates. review Collabora integration guide for details