Collabora with one domain

Hi all, my plan is to run collabora on the same domain, i know with two domains works fine but it´s impossible to get other domain in my company.
So the question is: is possible to run collabora with just one domain?
Thanks!

yes. if you mean “with the same domain as nextcloud”.

https://www.c-rieger.de/nextcloud-and-collabora-nginx/
or

Yes, it is possible to run Nextcloud and Collabora on the same domain e.g.
MyNextcloud.example.com
and
MyCollabora.example.com
You may follow the instructions here https://www.collaboraoffice.com/code/
or the instructions of Reiner_Nippes

Yes sorry, i mean with the same domain as nextcloud, i cant use a subdomain for collabora. So maybe following the instructions that @Reiner_Nippes gave me it could be done, right?
And while im seeing this, it´s with Nginx, if i use Apache it doesn’t matter? Obviously with its config

Also forgot to mention that using this command:
sudo docker run -t -d -p 127.0.0.1:9980:9980 -e ‘domain=nextcloud\.your-domain\.com’ --restart always --cap-add MKNOD collabora/code

With domain=nextcloud\.your-domain\.com suppose that my domain for nextcloud is https://domain.nextcloud.com:port, how can i introduce the port on this command?