Multi-Tenancy in Mautic this simple?

Proxmox will let you share a pool of resources across multiple containers ,as Joey mentions. I’ve had a server running over two months without issue, running three instances of Mautic, 3 help desks, some blogs. And it’s easy to add new nodes (machines) to the cluster.

It was a matter of a half hour to install it on a little mini server (64GB RAM, 2TB SSD, Ryzen 7 4800H), backed up to the cloud. Less than $400. I was trying to see how inexpensively I could do the hosting myself, after getting burned by spending waaaay too much money on hosted software from Zendesk, Klaviyo, and others. I think it’s worth a weekend afternoon to try it out :slight_smile:

1 Like

Yeah I totally agree with you: for 3 little hobby Mautics a proxy + containers would be an overkill.

This setup became a standard for me since:

  • I hate dependance on other software like Virtualmin. Sooner or later I would run into a limitation.
  • One click install solutions like Softaculus rarely produce a stable Mautic on the long run
  • I like the clean nature of the containers where nothing else is in there besides the software I need
  • The portability makes backups super easy and once your project grows (Mautic db likes to grow) moving containers between servers is a very simple and satisfying experience.
  • The real treat is the ability of taking snapshots and rolling back with ease: you can make a snapshot (takes 1 second) of a whole instance and roll it back if your update fails. No zips, no mysq drops. The snapshot doesnt eat the space as it’s just tracking changes.

But again: it is an overkill for a hobby or small project.

I’ve found this thread in searching for a better solution to the way I am running multiple instances, but thought it might be beneficial to throw my current configuration in the hat.

I have my Ubuntu server running in Proxmox, but it is superficial to the setup. I have seven instances of Mautic running on the single Ubuntu VM. They are each in their own directory in /var/www/sites/{SiteName}/
Each site has it’s own database in the MySQL server, so they are all using their own codebase and their own database. Apache handles routing to the correct site based on Virtual Hosts. Traefik is between the VM serving Mautic and the internet to handle SSL. All of this could run on a single host if you wanted it to.

I’m currently looking at the possibility of doing exactly what Warren mentioned in his first post, using the same codebase for all of the installs to make updating easier. I was considering using Apache to set ENV variables to point to the right codebase and configuration file for each site and they still have their own directory for config/local.php and any content uploads.

I’ve started using cloudpanel (free, with gui, can install on your own VPS, can install and keep apps like mautic installs separate without LXC, etc.) for one website on a vps, and it looks really solid and perhaps an easy way to manage multiple mautic installs on one vps, without a lot of overhead, etc.

I haven’t tried it for multiple mautics (as I have no need to at the moment), but I’d look into it if the need arises.

Anyone have experience using Cloudpanel and multiple Mautic installs?

https://www.cloudpanel.io/

“CloudPanel uses ultra-fast lightweight components for maximum performance. The technology stack is built with NGINX, PHP-FM, Redis, Node.js, etc.”