Multiple instances on one Ubuntu server


I would like to setup multiple instances of RocketChat on one single physical server.

I am not talking about “Running Multiple Instances Per Host To Improve Performance” as described at

I need multiple instances that are running independently of each other. So for each instance there exists its own database, domain etc.


A user that is registered at chat.astronomy.example is not registered at chat.biology.example

I know how to setup reverse proxies and everything that is needed for Apache.

What I would like to know is the best way of installing multiple instances of RocketChat on Ubuntu?What configuration files do I have to edit?
Should I setup multiple Docker instances instead?