Multiple Payload projects from 1 MongoDB instance #199
-
First off, thank you so much for releasing Payload to the public. I can see there has been a ton of work and thought that have gone into the project. Keep up the good work! 😄 🧨 Having looked at Since each Payload project can point to it's own MongoDB databse, and a MongoDB instance can consist of multiple databases, it seems quite possible to having many Payload projects from 1 MongoDB instance....but is it wise to do so ❓ Here follows some examples configs and ExamplesProject 1
Project 2
From what I understand about Payload's pricing each project would have it's own license, right? What are your thoughts about this, and would you consider a full multitenancy setup for Payload in the future? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Thanks for your appreciation of the project! As long as you are running each project in a separate node processes then this should work. It is a good idea to keep the databases separate as you showed to keep from having conflicts. Doing it this way, should be fine, MongoDB can run many DBs on one instance and Payload shouldn't have any issue here.
Yes, each domain in production needs to have a license.
What are you looking for specifically for "multitenancy"? From a technical standpoint, you're only limited by having to run more node processes to achieve this. Are there other features you'd like to see to help you along? I'm happy to help if you run in to anything or have more questions. Let us know how it goes. |
Beta Was this translation helpful? Give feedback.
-
@DanRibbens to your question: What would be useful is to manage multiple projects from one admin dashboard. Possible one or more admin accounts to rule them all, and then being able to scope users and the roles they have to a project. For example: An editor on 1 project should not necessarily be able to edit content from another project. The one(or, more) admin accounts are typically users who can manage stuff in the dashboard at the 'root' level and assign users, and roles to users, for projects. I hope that makes sense :-) |
Beta Was this translation helpful? Give feedback.
Thanks for your appreciation of the project!
As long as you are running each project in a separate node processes then this should work. It is a good idea to keep the databases separate as you showed to keep from having conflicts. Doing it this way, should be fine, MongoDB can run many DBs on one instance and Payload shouldn't have any issue here.
Yes, each domain in production needs to have a license.
What are you looking for specifically for "multitenancy"? From a technical stand…