[Open Source] Dolibarr ERP/CRM: All-in-One ERP and CRM for Small Business
![[Open Source] Dolibarr ERP/CRM: All-in-One ERP and CRM for Small Business](https://yy123.ink/api/img/smb-dolibarr-1.png)
Overview
Dolibarr is a mature PHP ERP and CRM suite for small companies, freelancers and associations. Its defining idea is modularity: customers, quotes, orders, stock, purchasing, invoicing, banking, expenses and double-entry accounting can be enabled one at a time. You are not forced to fill in hundreds of settings before the first useful screen appears. Because every module shares the same data model, a quote can become an order, an order can create a stock movement, and the shipment can be invoiced without retyping anything. For an owner moving off spreadsheets, that single source of truth is the main attraction.
Why it fits a small business
Small teams rarely suffer from a lack of software. They suffer from the same customer being recorded three times in a spreadsheet, a chat thread and a bookkeeping package. Dolibarr removes that duplication. The owner opens the dashboard and sees receivables, today's tasks and low-stock alerts instead of chasing people for updates. The Chinese interface is complete and uses vocabulary that small businesses recognise, so training is short. Unlike hosted suites that charge per user, a self-hosted instance keeps the data on your own server and remains usable even if a vendor changes its pricing.
What you can do
- Leads, customers and contacts with tags and custom fields
- Opportunities and a stage-based sales pipeline
- Quotes, sales orders and contracts with PDF templates
- Products, services and multi-warehouse stock with batch tracking
- Suppliers, purchase orders and incoming goods
- Invoices, payments and bank reconciliation
- Optional double-entry accounting and financial statements
- Expense claims, leave requests and timesheets
- Projects, tasks, tickets and a plugin marketplace
Stack and license
The backend is PHP 8.x with server-rendered templates and a small amount of JavaScript. MariaDB or MySQL is the production database; SQLite is available for a single-user trial. Dolibarr is released under GPL-3.0, so internal use, modification and self-hosting are free, while distributing a modified hosted service carries the usual source-disclosure duties. The official Docker images are maintained by the Dolibarr team and tagged by release, for example 24.0.3. PHP extension requirements are modest, so standard distribution images work without custom builds.
Deployment notes
A typical deployment is a two-container Compose stack: the application and MariaDB. The image listens on port 80 internally and can be published on 8080 or 80. The first visit opens a browser installer that checks PHP, asks for database credentials and creates the administrator. Two details cause most trouble. The conf directory must be writable during installation so conf.php can be generated, and the documents directory must be a named volume or uploaded attachments disappear when the container is replaced. Behind Nginx, forward Host and X-Forwarded-Proto or generated links will point at the wrong scheme and domain. Use utf8mb4 for the database so Chinese names and notes are stored correctly.
- A blank page after upgrade usually means a stale template cache; clear the cache under documents.
- Garbled Chinese in PDF invoices means the PHP container lacks a Chinese font.
- Email will not send until an SMTP account is configured; Dolibarr does not bundle a mail server.
- Permissions are granted per module, so each new module needs its user groups updated.
Resource footprint
On a 2 CPU / 4 GB machine, Dolibarr plus MariaDB runs comfortably at roughly 700 MB to 1.2 GB under normal load. Up to twenty users with one warehouse and a few hundred documents a month fit that budget easily. Manufacturing, multiple warehouses and hundreds of thousands of product records justify 4 CPU / 8 GB and an SSD for the database. The image itself is about 1.2 GB, mostly PHP runtime and templates; real business data lives in the database and the documents volume, so both must be in the backup plan.
Before you deploy
Write down the few facts that will be used every day before creating containers: the people who need access, the names of the main business objects, and the one workflow that must work on launch day. Most failed self-hosting projects do not fail because the software is broken; they fail because master data is messy and nobody agreed on who owns each step. Prepare persistent volumes, a final domain name and a working SMTP account now, since all three are painful to retrofit after staff have started using the system. If the tool will be reachable from the internet, plan for HTTPS from the first hour rather than as a later improvement.
Data organisation
Start small and real. Import a handful of current records rather than a perfect but imaginary dataset, then walk one complete cycle from creation to report. Give fields short, familiar names and resist adding custom fields until somebody asks for the same filter twice. Define roles at the same time as data: an owner who can see everything, a small group that can edit, and everyone else with read-only or self-service access. Write the three or four rules that matter most into a one-page guide, because a short guide that people read is more useful than a long manual that nobody opens. Review the structure after a month and remove fields that nobody uses.
Backup, upgrades and security
Every system in this batch stores its real value in two places: the database and the uploaded files. Back up both on the same schedule, keep one copy away from the host, and perform a restore drill at least once a quarter. Before replacing an image, read the release notes, take a fresh backup and, where practical, rehearse the upgrade on a test instance. Use one account per person, disable accounts immediately when someone leaves, and keep the administrator login for administration rather than daily work. Check public links and API tokens periodically; forgotten shares are a common source of leaks. HTTPS, strong passwords and a short access review every quarter are enough to protect a small business without building a security programme.
Getting started
- Prepare persistent volumes, the database, the final HTTPS address and the pinned image tag.
- Start the stack and complete the first-run wizard or site creation step before inviting anyone.
- Enter a small set of real master data and run one complete workflow to the final report.
- Assign roles, configure email notifications and document the three steps people will use daily.
- Schedule backups, rehearse a restore and only then make the system the team's default place to work.
Pitfalls
- A blank page after upgrade usually means a stale template cache; clear the cache under documents.
- Garbled Chinese in PDF invoices means the PHP container lacks a Chinese font.
- Email will not send until an SMTP account is configured; Dolibarr does not bundle a mail server.
- Permissions are granted per module, so each new module needs its user groups updated.
Who should use it
This suits trading companies, small manufacturers, studios and associations that need sales, stock and accounts to connect. It is heavier than a pure CRM, so contact-management-only teams should look at EspoCRM, and organisations with deep approval hierarchies need a full ERP. For a small business replacing scattered spreadsheets, Dolibarr offers the best balance of completeness and self-hostability.
A typical day
The pattern is similar across these tools. In the morning someone opens the system instead of a chat thread, because that is where the current state lives. Work is recorded once, at the moment it happens, and the record carries enough context for a colleague to continue. During the day, filters and views answer the small questions that used to interrupt other people: what is waiting, what is overdue, and who owns the next step. At the end of the day or week, a report is generated from the same records rather than rebuilt by hand. That is the practical return on self-hosting: fewer repeated questions, fewer conflicting versions of the truth, and data that remains yours.
Links
Source repository | Container image | Official documentation
Having trouble setting up this project?
We have run “[Open Source] Dolibarr ERP/CRM: All-in-One ERP and CRM for Small Business” locally and verified that it installs and the admin panel works. We can deploy it to your server.
- Starting at
- from $149
- Estimated time
- 48 hours
- Deployment notes
- Compose 编排、MariaDB 初始化、模块与权限配置、HTTPS 反代 / Compose stack, MariaDB init, modules and permissions, HTTPS proxy
WeChat: ITcloub · Bring your own server and domain · Full refund if deployment fails