Collabora Office Docker with Nextcloud (bare metal install) - Document loading failed with office document

From you description chances are high one of the systems can not reach the other..
Please review the Collabora integration guide and report the troubleshooting steps.