Install Collabora with Nextcloud on a sub folder

Hi,
I just downloaded the Collabora image but I am stuck with the installation on a Nextcloud 15.x setup.

Based on the official install information to launch Collabora I need to run :
docker run -t -d -p 127.0.0.1:9980:9980 -e ‘domain=cloud\.nextcloud\.com’ --restart always --cap-add MKNOD collabora/code
assuming cloud.nextcloud.com as the nextcloud url.

But our setup is in www.domain.com/apps/cloud.

I tried to modify the entry as follow:
docker run -t -d -p 127.0.0.1:9980:9980 -e ‘domain=www\.domain\.com/apps/cloud’ --restart always --cap-add MKNOD collabora/code

It did not generate any error on the CLI side but when trying to the collabora url office.domain.com I got send to the root folder with access to index.nginx-debian.html instead of Collabora itself.

Can someone help me out ?

Thanks

afaik this is only relevant for server name and certificate.

you have to setup the nginx server for cloud.nextcloud.com to redirect all traffic for www.domain.com/apps/cloud to 127.0.0.1:9980.

something like this: