Dolibarr multi company: Multicompany or one installation per company?
Running several companies with Dolibarr: what Dolibarr does without a module, what Multicompany brings (price, sharing, constraints) and the free option, one installation per company, tested on a server running two Dolibarr 24 instances.
Want someone to look at your instance? Diagnosis, fixed price €90.
What was checked (versions, tests, code read)
Dolibarr 24.0.3 code read (filefunc.inc.php, main.inc.php, core/lib/functions.lib.php getEntity, core/lib/security2.lib.php, user/card.php, api/index.php, install/mysql/tables). Tests on 14/11/2026: two fresh Dolibarr 24.0.3 instances on a single MariaDB 11.4 server (two databases), company, customer and validated invoice in each, PDFs generated in French, English and German, memory measured; then the three files on this page run as they are with the official 24.0.2 image (only the ports changed on our machine): two databases created, company name set, login to both. DoliStore page of the Multi-company module (no. 1619) read on 14/11/2026. dolibarr.fr and dolibarr.org forum threads cited on the page.
You have two companies, a holding and its subsidiaries, or several shops that are each a separate company, and you want to run them with Dolibarr. There are two ways: the paid Multicompany module, which puts several companies in one installation, or one Dolibarr installation per company, which is free.
This page explains what Dolibarr does without a module, what Multicompany brings and what it commits you to, then how to run several Dolibarr instances on one server. The Dolibarr 24.0.3 code was read, and the free option was tested on 14 November 2026 on a server with two fresh Dolibarr instances.
What Dolibarr does without a module
One Dolibarr installation = one company. One name and one address in Setup > Company/Organization, one invoice numbering, one chart of accounts.
Dolibarr’s tables do have an entity column (the company number), and the code uses it
everywhere to filter data. But without the Multicompany module, the core function that decides
which companies see which data (getEntity()) only returns the current company, and there is no
screen to create a second company and no list to pick it at login. Checked on a fresh 24.0.3
instance: the login page has no company choice, and all data sits in company no. 1.
An installation reads a single configuration file, conf/conf.php, in its own folder, so it works
with a single database.
The two options in one table
| One installation per company | Multicompany module | |
|---|---|---|
| Price | free | €360 excl. VAT, 1 year of updates, then renewals at −50% |
| Shared customers, products, stock | no (import/export, or API) | yes, as you choose, item by item |
| One login for everything | no, one account per installation | yes, with permissions per company |
| Separate numbering and accounts | yes, by design | yes, by default |
| Upgrading Dolibarr | whenever you want | check that the module is compatible |
| Add-on modules | nothing to check | each one must be Multicompany-compatible |
| Splitting a company off later (sale) | nothing to do: its database is separate | database work |
In short: if your companies really share customers, products or stock day to day, Multicompany is built for that. If each one lives its own life, one installation per company is simpler, free and easier to split.
Option 1: one installation per company (free)
Each company has its own Dolibarr and its own database. They can run on the same server and share the same MariaDB or MySQL: you just need one database per company.

Above, our two test installations: each has its own company name on its PDFs and its own numbering, so both first invoices carry the same number, FA2611-0001. That is expected: these are two companies, with two invoice sequences.
With Docker: one file for two companies
In an empty folder, create the docker-compose.yml file:
services:
db:
image: mariadb:11.4
restart: unless-stopped
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
environment:
MARIADB_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
MARIADB_DATABASE: dolibarr_a
MARIADB_USER: dolibarr_a
MARIADB_PASSWORD: ${DB_PASSWORD_A}
volumes:
- ./data/mariadb:/var/lib/mysql
- ./docker-init.d:/docker-entrypoint-initdb.d:ro
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 10s
retries: 10
societe-a:
image: dolibarr/dolibarr:24.0.2
restart: unless-stopped
depends_on:
db:
condition: service_healthy
environment:
DOLI_DB_HOST: db
DOLI_DB_NAME: dolibarr_a
DOLI_DB_USER: dolibarr_a
DOLI_DB_PASSWORD: ${DB_PASSWORD_A}
DOLI_URL_ROOT: ${URL_A}
DOLI_ADMIN_LOGIN: admin
DOLI_ADMIN_PASSWORD: ${ADMIN_PASSWORD_A}
DOLI_INSTANCE_UNIQUE_ID: ${UNIQUE_ID_A}
DOLI_COMPANY_NAME: ${NOM_A}
DOLI_COMPANY_COUNTRYCODE: FR
ports:
- "8081:80"
volumes:
- ./data/documents-a:/var/www/documents
- ./data/custom-a:/var/www/html/custom
societe-b:
image: dolibarr/dolibarr:24.0.2
restart: unless-stopped
depends_on:
db:
condition: service_healthy
environment:
DOLI_DB_HOST: db
DOLI_DB_NAME: dolibarr_b
DOLI_DB_USER: dolibarr_b
DOLI_DB_PASSWORD: ${DB_PASSWORD_B}
DOLI_URL_ROOT: ${URL_B}
DOLI_ADMIN_LOGIN: admin
DOLI_ADMIN_PASSWORD: ${ADMIN_PASSWORD_B}
DOLI_INSTANCE_UNIQUE_ID: ${UNIQUE_ID_B}
DOLI_COMPANY_NAME: ${NOM_B}
DOLI_COMPANY_COUNTRYCODE: FR
ports:
- "8082:80"
volumes:
- ./data/documents-b:/var/www/documents
- ./data/custom-b:/var/www/html/custom
Set DOLI_COMPANY_COUNTRYCODE to your country’s two-letter code (GB, US, DE…).
MariaDB only creates the first database by itself. The second one is created by a small script,
docker-init.d/02-societe-b.sql, read only once, at first start, while the data folder is still
empty:
CREATE DATABASE IF NOT EXISTS dolibarr_b CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER IF NOT EXISTS 'dolibarr_b'@'%' IDENTIFIED BY 'replace-with-DB_PASSWORD_B';
GRANT ALL PRIVILEGES ON dolibarr_b.* TO 'dolibarr_b'@'%';
FLUSH PRIVILEGES;
The password in this script must be the same as DB_PASSWORD_B (the SQL script does not read the
.env file). Finally, the .env file, with your own values:
DB_ROOT_PASSWORD=a-long-password
DB_PASSWORD_A=another-password
DB_PASSWORD_B=replace-with-DB_PASSWORD_B
ADMIN_PASSWORD_A=admin-password-company-a
ADMIN_PASSWORD_B=admin-password-company-b
URL_A=http://localhost:8081
URL_B=http://localhost:8082
UNIQUE_ID_A=a-random-string-for-a
UNIQUE_ID_B=another-random-string-for-b
NOM_A=Boulangerie Martin SARL
NOM_B=Martin Traiteur SAS
Then docker compose up -d. On first start, each Dolibarr creates its tables (allow a few
minutes); company A then answers on port 8081, company B on 8082. The company name (NOM_A,
NOM_B) and the country are set at installation; the rest (address, registration numbers, logo)
is filled in under Setup > Company/Organization in each one.
This file is deliberately short. For a production server (encrypted passwords, scheduled jobs, domain name), apply to each company the settings from Installing Dolibarr with Docker Compose.
On our test machine, each idle Dolibarr used about 90 MB of memory, and the shared MariaDB about 240 MB: adding a company costs almost nothing.
On a classic server (Apache or Nginx)
Same idea: one Dolibarr folder per company (for example /var/www/company-a and
/var/www/company-b), one database per company, one subdomain per company. Each folder has its
own conf/conf.php: give each one a different documents folder ($dolibarr_main_data_root),
otherwise the two companies’ PDFs get mixed. You then follow
Installing Dolibarr on Ubuntu or Debian twice,
changing the folder, the database and the domain name each time.
What you lose, and how to make up for it
- No shared customers or products. To copy a list from one company to the other: export, then CSV import. For regular synchronisation: the REST API of each installation.
- One account per company. A user who works for both has two logins.
- No consolidated view. Figures are combined by hand, or by export.
- Two upgrades. Each installation is upgraded separately; on the other hand, you can upgrade one without risking the other.
Option 2: the Multicompany module
Multicompany is a module by Régis Houssin (iNodbox), sold on the DoliStore. It puts several
companies (“entities”) in one installation, and it is what makes the core’s entity column work.
According to its DoliStore page (read on 14/11/2026):
- price: €360 excl. VAT; updates and support for 1 year, then 50% off renewals;
- versions: Dolibarr 16 to 24, PHP 7.4 to 8.4; module version 24.0.2;
- licence: GPL;
- what it can share, as you choose: third parties and contacts, products and services, prices, categories, stock, bank accounts, agenda, projects, tickets, commercial documents (proposals, orders, invoices…), and even the numbering if you want one shared sequence;
- users: one account per company, or a central account that reaches several companies with different permissions;
- trial: a free 30-day demo.
Official page: Multi-company on the DoliStore.
What to know before buying it
- The price covers one year. Updates and support are included for one year; after that, the page announces 50% off the renewal. Before upgrading Dolibarr, check that the module version you have access to is compatible with the new version.
- Make a backup before disabling it. A user reports that after disabling it for a test, they could no longer log in (“Failed to get the login key for mode ‘mc’.”) and had to restore the server (forum thread, French). That message comes from the Dolibarr core: it shows when a requested login method is not available. A backup before any disabling avoids the risk.
- All companies sit in the same tables. Splitting a company off later (selling a subsidiary) is therefore not a one-click job: its rows must be extracted from each table, taking into account what was shared (forum thread).
- Every add-on module must take it into account. Dolibarr tells companies apart with the
entitycolumn; a module that does not filter on it can show one company’s data in another. Ask the publisher of each module whether it is Multicompany-compatible. - The API targets a company with a header. With Multicompany, a REST API request picks the
company by adding the
DOLAPIENTITY: 2header next to theDOLAPIKEYkey; the Dolibarr 24 core does read this header (api/index.php).
To host Dolibarr for unrelated customers (a “SaaS” offer), the answer given on the official forum is one installation per customer: Multicompany is described there as built for sister companies that share data (forum thread).
Which one to choose?
| Your situation | Recommended option |
|---|---|
| Two companies with no shared customers or products | one installation per company |
| A company you might sell one day | one installation per company |
| Several shops or subsidiaries exchanging stock every day | Multicompany |
| A holding that wants a single login for all its companies | Multicompany |
| Hosting Dolibarr for unrelated customers | one installation per customer |
Summary
- Without a module, Dolibarr manages one company per installation; the
entitycolumn only comes into play with Multicompany. - Free: one installation per company, several of them able to run on one server, each with its own database; numbering and accounts separate by design.
- Multicompany (€360 excl. VAT, 1 year of updates): shared customers, products, stock and users; after one year, updates to renew, add-on modules to check, and a split done in the database.
Next
To install each Dolibarr properly: with Docker Compose or on Ubuntu or Debian. To copy customers from one company to the other: importing a CSV or Excel file, and to find duplicate customers afterwards: duplicates in Dolibarr.
Not sure which option suits your companies? The €90 diagnosis means looking at your situation with you for an hour, then giving you in writing the recommended solution and what it would cost to set up.
Frequently asked questions
Can Dolibarr manage several companies without a module?
No. One Dolibarr installation manages one company: one name, one invoice numbering, one set of accounts. The tables do have an "entity" column, but without the Multicompany module the core has no screen to create a second company and no company choice at login (checked in the code and on a fresh 24.0.3 instance). Without a module, the answer is one installation per company.
How much does the Multicompany module cost?
€360 excluding VAT on the DoliStore on 14/11/2026, with one year of updates and support, then 50% off renewals according to the module's page. It is compatible with Dolibarr 16 to 24.
Is there a free way to manage several companies in Dolibarr?
Yes: one Dolibarr installation per company, each with its own database. On one server, two Dolibarr instances can share the same MariaDB (one database each). Tested on 14/11/2026 with Docker: each company has its own numbering (two invoices FA2611-0001) and its own users. What you lose: shared customers and products, and the consolidated view.