According to this, Multitenant Setup · frappe/bench Wiki (github.com)
Erpnext supports multitenancy eployment, using a single isntance installation. which will create a separate DB for the new isntance, and copy all revelevant apps and configs, to the new instance
there are 2 was this can be handled.
the fisrt one is port based handling. where instance 1 is on port 8000, instance 2 on port 8002 etc.
so that i can point domain1.tld to first port and domain2.tld to second port.
this is great, without the need of installing multiple erpnet instances, especially for staging and prodcution use case.
even at the moment, if you go inside the eprnext container, and you run the command, benh new-site, sitename you shoudl be able to have a new, seprate isntance of eprenxt configured by the system.
the challenge is, how do we expose this new instance within the confines of NS8.
dynamically, for the user.
A similar answer will also help me with bigcapital, which also supports the same.