Note 003 · Infrastructure1 min read
One instance per site
Why every MN-Core site gets its own stack and database, what that costs, and where the rule bends.
The first decision in MN-Core is the one everything else leans on: every site is its own instance. Its own Docker Compose stack, database, storage, users, plugins and theme. Sites share code, never data.
Why not one multi-tenant install
Multi-tenancy makes sense for a product like a booking platform, where every customer runs the same software. A website core is different. One site needs a Turkish payment gateway, another a different SMS provider, a third a theme nobody else will ever use. Put them in one database and every plugin, migration and traffic spike is shared too.
- A bad deploy or a busy week on one site never reaches another.
- A client's data sits in a database you can point to.
- Removing a site means removing one stack and one database.
What it costs
More servers to look after. That's only bearable when everything repeatable is a script: provisioning, install, updates with rollback, backups and a restore test. The rest happens in the admin, in the browser.
Where the rule bends
This site is the exception. It shares a server with other projects instead of having one to itself, because a personal site doesn't need one. It is still its own instance: its own containers, networks, database user and resource limits, and nothing it does can reach the projects next to it.
- Docker