Multi-tennant Selfhosted

Hi,

I am working for an NGO that provides IT solutions to our partner NGO’s. We aren’t exactly an MSSP but have similar requirements.

Each partner organization wants of course their own distinct URL (vault.YYY.org ; vault.ZZZ.org ; etc… ) but ideally I would like them all to end up on one (virtual) machine.

Could this be done with some clever DNS tricks? Or maybe a smart reverse proxy? Ideally I would like that they each have their own database but this is not a must.

Cheers,
Tom