Install Collabora on a server and Nextcloud on other server

For me I managed to solve the issue presented above. I’ll post a link to another post in the forums where I described the solution:

In a nutshell
My setup is this
FreeNAS
Within FreeBSD jail – I run apache24 and nextcloud
Within an Ubuntu Linux VM, I installed docker and the collabora container.

I run my main webserver as domain.com, my nextcloud instance as nextcloud.domain.com and my Ubuntun Linux Machine/docker collabora known as office.domain.com. All three of these need a valid URL in order to use SSL certificates. I obtained a domain certificate from Let’s Encrypt and added the subdomains to the main certificate. My certificates are stored in one directory on my main Freenas server and this directoy is shared readonly with the FreeBSD Apache/Nextcloud jail, and via an NFS share within the Ubuntu VM. The certificate directory is also mounted within the collabora docker container.
The link posted above goes into more detail about the setup and how to modify the docker container. I can post my <Virtual Host> sections if need be.

This link really helped me to get the Apache Webserver/nextcloud server up and running: https://www.samueldowling.com/2018/12/08/install-nextcloud-on-freenas-iocage-jail-with-hardened-security/