# Multi Tenant Mautic

**URL:** <https://forum.mautic.org/t/multi-tenant-mautic/10525>\
**Category:** Development\
**Created:** [May 24, 2018, 3:19am UTC](https://forum.mautic.org/t/multi-tenant-mautic/10525 "2018-05-24T03:19:36Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![vamsi](https://avatars.discourse-cdn.com/v4/letter/v/b38774/32.png) [@vamsi](https://forum.mautic.org/u/vamsi)\
**Post date:** [May 24, 2018, 3:19am UTC](https://forum.mautic.org/t/multi-tenant-mautic/10525/1 "2018-05-24T03:19:36Z")

</div>

Hello guys.  
I had converted Mautic into multi tenant application.  
Now each and every user has their own database.  
When a user navigates to the application, based on the url, he will be connected to his database.

After this, i have a doubt like every user’s data should aslo bee different.  
There are many files getting creating dynamically like the prod folder inside the cache. How can i differentiate these folders from user to user ? where are the configuration for this file located ?  
Please help me out with this.

---

<div class="post-metadata">

**Author:** ![gacott](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gacott/32/314_2.png) [@gacott](https://forum.mautic.org/u/gacott)\
**Post date:** [July 31, 2018, 4:39pm UTC](https://forum.mautic.org/t/multi-tenant-mautic/10525/2 "2018-07-31T16:39:23Z")

</div>

I’d sure like to talk to you about that.

---

<div class="post-metadata">

**Author:** ![kuzmany](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kuzmany/32/390_2.png) [@kuzmany](https://forum.mautic.org/u/kuzmany)\
**Post date:** [September 5, 2019, 10:57am UTC](https://forum.mautic.org/t/multi-tenant-mautic/10525/3 "2019-09-05T10:57:33Z")

</div>

Hi Guys,

maybe this should help you [https://mtcextendee.com/marketplace/multiple/](https://mtcextendee.com/marketplace/multiple/)

---

<div class="post-metadata">

**Author:** ![Yosu\_Cadilla](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/yosu_cadilla/32/6206_2.png) [@Yosu\_Cadilla](https://forum.mautic.org/u/Yosu_Cadilla)\
**Post date:** [October 12, 2019, 1:24am UTC](https://forum.mautic.org/t/multi-tenant-mautic/10525/4 "2019-10-12T01:24:30Z")

</div>

If you need Mautic for multiple clients or departments, consider replication instead of multi-tenant / multitenancy, here’s why:

[https://mauteam.org/infrastructure/which-is-the-best-way-to-run-mautic-for-agencies/](https://mauteam.org/infrastructure/which-is-the-best-way-to-run-mautic-for-agencies/)

The basic advantages are security, scalability, portability and the ability to modify a specific customer’s code and/or settings individually.

Cheers!

---

<div class="post-metadata">

**Author:** ![autoize](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/autoize/32/105_2.png) [@autoize](https://forum.mautic.org/u/autoize)\
**Post date:** [October 24, 2019, 5:01pm UTC](https://forum.mautic.org/t/multi-tenant-mautic/10525/5 "2019-10-24T17:01:27Z")

</div>

@Yosu_Cadilla  
To us, multi-tenant also refers to multiple Mautic instances running on the same virtual machine.  
Although Mautic’s community edition does not support multi-tenancy in the sense that multiple organizations share a single instance (of the running code), running multiple instances on the same hardware is very well supported by solutions such as LXC/LXD or Docker containers.

> **[Hosting Multiple Mautic Instances with Linux Containers | Autoize](https://autoize.com/multi-tenant-mautic-hosting-architectures/)**
>
> Three key types of architecture for multi-tenant Mautic hosting compared: Web server virtual hosts, LXC/LXD containers, and Docker containers.

---

<div class="post-metadata">

**Author:** ![Yosu\_Cadilla](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/yosu_cadilla/32/6206_2.png) [@Yosu\_Cadilla](https://forum.mautic.org/u/Yosu_Cadilla)\
**Post date:** [February 7, 2020, 9:11am UTC](https://forum.mautic.org/t/multi-tenant-mautic/10525/6 "2020-02-07T09:11:14Z")

</div>

Link didn’t work, re-posting…

> **[Which is the Best Way to Run Mautic for Agencies? | mauteam.org](https://mauteam.org/mautic/mautic-for-the-c-suite/which-is-the-best-way-to-run-mautic-for-agencies/)**
>
> Every so often I get requests to deploy multi-tenant Mautic setups, those requests are usually from a Marketing agency that needs to run multiple Mautic instances for their customers or their internal…

---

<div class="post-metadata">

**Author:** ![autoize](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/autoize/32/105_2.png) [@autoize](https://forum.mautic.org/u/autoize)\
**Post date:** [March 9, 2020, 5:08pm UTC](https://forum.mautic.org/t/multi-tenant-mautic/10525/7 "2020-03-09T17:08:16Z")

</div>

To follow up on our [earlier article](https://autoize.com/multi-tenant-mautic-hosting-architectures/), Docker has really pulled ahead as the preferred way of deploying multiple instances of Mautic on a unified infrastructure at scale.

With Docker, the manageability of multiple Mautic containers from a centralized interface is second-to-none. The abundance of open source tooling (e.g. control panel, image registry, edge router, storage drivers) that **receive updates & new features all the time** , reflects the size and strength of the Docker ecosystem.

By comparison, the tools around the LXC project are **not being actively maintained** , with the [LXC Web Panel repo](https://github.com/lxc-webpanel/LXC-Web-Panel) having not received any commits since Dec 2017. At this point, there’s no guarantee it is safe (or stable) to deploy the LXC Web Panel in production. For security reasons, if we had to try using it, we would only expose the tool on the local interface and access it over a SSH tunnel. In fact, it may not even be compatible with the current version of LXC.

With Docker, one can even containerize other related apps such as SuiteCRM, deploy them on the same cluster, and integrate them with Mautic. If we were to advise a customer investing in a brand new multi-tenant solution for Mautic, we would certainly recommend going with **Docker instead of LXC**.

> **[Full Stack Marketing Reseller Program | Autoize](https://autoize.com/full-stack-marketing-reseller-program/)**
>
> Agencies & consultants - Spin up and resell pre-integrated Mautic and SuiteCRM instances in minutes with your own dedicated Docker cluster.

---

<div class="post-metadata">

**Author:** ![Warren](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/warren/32/4292_2.png) [@Warren](https://forum.mautic.org/u/Warren)\
**Post date:** [January 13, 2021, 5:21pm UTC](https://forum.mautic.org/t/multi-tenant-mautic/10525/8 "2021-01-13T17:21:13Z")

</div>

@autoize

May I ask, as someone new (haven’t installed Mautic yet) with no programming skills but a good ability to follow tutorials 🙂 – would you recommend hosting Mautic on a VPS with Docker for future proofing, possibly local hosting and doing upgrades locally then copying over to the cloud if all goes well, etc (as best practice when updates come out)? (Also thinking of hosting iredmail in the same vps instance (also with Docker?)) – and possibly a Wordpress site or two.

I was searching for the up-to-date Docker file for Mautic you mentioned in another thread, but I can only find old ones? Do you still maintain a docker image?

Is using Docker adding additional CPU + RAM load to the server?

As a non-techie, am I best to stay away from Docker because it adds another layer of complexity?

Just looking for the best way to get started and future proofing without pulling my hair out down the line…

Thank you!

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [January 14, 2021, 3:23pm UTC](https://forum.mautic.org/t/multi-tenant-mautic/10525/9 "2021-01-14T15:23:53Z")

</div>

Hi,  
check these guys:

> **[Which is the Best Way to Run Mautic for Agencies? | Mauteam.org](https://mauteam.org/mautic/mautic-for-the-c-suite/which-is-the-best-way-to-run-mautic-for-agencies/)**
>
> Every so often I get requests to deploy multi-tenant Mautic setups, those requests are usually from a Marketing agency that needs to run multiple Mautic instances for their customers or their internal…

> **[How To Implement Multi-tenancy In Mautic to Reduce Maintenance Costs](https://blog.containerize.com/2020/12/11/how-to-implement-multi-tenancy-in-mautic/)**
>
> Implementing multi-tenancy in Mautic reduces costs, improves efficiency and security. Easily create hundreds of tenants from just one installation.

[https://hub.docker.com/r/autoize/mautic/](https://hub.docker.com/r/autoize/mautic/)

I went the LXD way, worked out for me.  
Good luck!

---

<div class="post-metadata">

**Author:** ![Warren](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/warren/32/4292_2.png) [@Warren](https://forum.mautic.org/u/Warren)\
**Post date:** [January 14, 2021, 11:27pm UTC](https://forum.mautic.org/t/multi-tenant-mautic/10525/10 "2021-01-14T23:27:38Z")

</div>

Thanks, @joeyk – after more contemplation I’m thinking to just install normally without containers … I just can’t wrap my head around it at this stage … Stretched to capacity just thinking about a normal install let alone another piece of software 🙂

---

<div class="post-metadata">

**Author:** ![Yosu\_Cadilla](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/yosu_cadilla/32/6206_2.png) [@Yosu\_Cadilla](https://forum.mautic.org/u/Yosu_Cadilla)\
**Post date:** [June 11, 2021, 1:48am UTC](https://forum.mautic.org/t/multi-tenant-mautic/10525/11 "2021-06-11T01:48:54Z")

</div>

My last presentation on this topic goes a bit deeper than what we’ve already discussed around here, thanks guys for the inspiration!

[![](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/3/3d2866a57ae3a23ebe2b97f69017b1a235015b15.jpeg "MautiCon 2020 - Yosu Cadilla - Build Your Own SaaS Mautic") ](https://www.youtube.com/watch?v=Bx0rOWkEkJc)
