RamyHakam / multi_tenancy_bundle

Symfony 5 /6 bundle to support multi-tenants
MIT License
70 stars 24 forks source link

Support multi tenant db hosts #41

Closed RamyHakam closed 20 hours ago

RamyHakam commented 3 weeks ago

In this PR we will support Multi-tenant db hosts, which means that for each tenant you can have a completely different host and port, Some notes regarding this feature

  1. All tenant DBs should have the same Driver type, Cuz For now the tenant Sechma is shared between all tenants
  2. If your tenants host on localhost but with different ports, it is better to use IP rather than localhost in your host
  3. In docker you should use IP rather than localhost
  4. You can use docker.host.internal as your host in your docker env But remember to add it as an extra host in your compose file