Skip to Content

Contributors

Re: Multi Tenant Self Hosted Enviroments

Sorry for the extra noise, but I should have looked at the cloudpepper
solution a little closer before responding.   CPs approach is to
manage multiple server instances on disparate cloud providers, I am
looking to consolidate the functionality to a single cluster of
servers and not deploy a unique server per client.   I could do a lot
of the same type of functionality by making use of Terraform providers
and ansible or alternatively make use of multiple Docker containers,
but a lot of the core functionality that I am looking for already
exists within Odoo.   I'm just trying to find out if somebody else has
already harnessed it to perform multiple tenant deployments within the
same Odoo instance.

Thank you,
Charles

On Sat, May 20, 2023 at 2:21 PM Charles Gucker <cgucker@onestep.net> wrote:

>

> Let me respond inline.

>

> On Sat, May 20, 2023 at 2:02 PM Sven from Cloudpepper

> <notifications@odoo-community.org> wrote:

> >

> > Hi Charles,

> >

> >

> > Perhaps you can give our services a try?

> > You can host as many Odoo instances (Community and Enterprise) on a server as you want, all automated.

> > Also gives you test environments, GitHub deployment and automated backups.

> > It also has the OCA marketplace built-in, so you can easily activate any OCA module on an instance.

>

> Yes, this is in short what I want to be able to provide to my clients,

> but directly as in self-hosted.   Glad to see that somebody has done

> it.

>

> > We can also give clients access to your own branded dashboard so they can see and manage their instances (ie. see the logs, restart, create a backup, etc.)

>

> Would love to better understand the approach your company took to

> achieve the multi-tenant design of Odoo.   Just to be clear, I would

> not be making any offers to the general public, unless tied to a brick

> and mortar offering.

>

> Charles

by cgucker - 08:35 - 20 May 2023

Reference

  • Multi Tenant Self Hosted Enviroments
    Greetings,
    
          I have been struggling to set up a multi-tenant, self hosted
    Odoo environment.   The purpose of multi-tenant in my deployment, I am
    referring to having multiple clients, who will each want to "own" and
    manage their instance / database of Odoo.   That is, being able to set
    up multiple websites, shops, with consolidated invoicing and services
    already provided by Odoo.
    
          I understand that I can set up separate VMs which would each
    point to a specific database.   But it would require additional
    resources to deploy each VM to maintain the OS instances required.
    As a result, I am looking to consolidate the deployments as much as
    possible.   This way I can configure clients and then break them out
    if/when it's needed.
    
         I am running Odoo 16, self hosted.   I started to go down the
    path to try and force clients to use their specific domain name, but
    that became an issue because dbfilter can associate between a fully
    qualified hostname, or just the hostname itself.   It wasn't built to
    go the other direction.   Then I ran into the problem of a client
    needing to use multiple domains and how to associate them to their
    respective databases.   I tried to do much of this logic within nginx,
    but even then I ran into problems with modifying HTTP headers and then
    losing the desired outcome.
    
         Does anybody know if I'm missing something, or would I really
    have to kickoff an Odoo instance for each client with their own
    distributed TLS/SSL cert, DB and front-end server ?   I would really
    like to find a solution that would scale and I know a lot of people
    have made it scale.  I'm just missing some pieces to do the same.
    
    Thank you,
    Charles
    

    by cgucker - 07:46 - 20 May 2023