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?

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

Yes, it is possible to run Nextcloud and Collabora on the same domain e.g.
You may follow the instructions here
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 -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, how can i introduce the port on this command?