[Open Source] EspoCRM: Privately Hosted CRM and Sales Pipeline
![[Open Source] EspoCRM: Privately Hosted CRM and Sales Pipeline](https://yy123.ink/api/img/smb-espocrm-1.png)
Overview
EspoCRM is a self-hostable open-source customer relationship management system covering leads, accounts, contacts, opportunities, email, calendar, tasks, reports and workflows. Its interface is among the most polished in open-source CRM and closely resembles commercial SaaS products, so staff can usually start using it without formal training. Licensed under AGPL-3.0 and distributed by the official project organisation, it is a practical way to escape per-seat pricing while keeping customer data on your own server.
Why it fits a small business
Customer information scattered across salespeople's phones is a hidden risk in every small company. EspoCRM turns the path from lead to closed deal into a visible pipeline: who is following up, what was said last time, and what happens next are all recorded. The owner opens a report and sees new leads, win rate and each salesperson's funnel without chasing anyone. With IMAP integration, incoming mail is automatically attached to the matching account timeline, removing hours of manual data entry each week. Custom entities let the CRM grow with the business instead of forcing a rigid data model.
What you can do
- Leads, accounts and contacts with company relationships and tags
- Opportunities and sales pipelines with weighted forecasts
- Calendar and tasks for meetings, calls and to-dos
- Email integration that links messages to customer records
- Workflows and BPM rules for status changes and notifications
- Reports and dashboards with draggable charts
- Custom entities, fields and layouts
- A customer portal and multi-language interface including Chinese
Stack and license
EspoCRM is a PHP application with a lightweight JavaScript frontend and uses MariaDB or MySQL for storage. Official images come in Apache and FPM variants; the apache-trixie tag includes a full web server and is the easiest to deploy. The license is AGPL-3.0: internal use carries no extra obligations, while offering a modified version as a hosted service triggers source-disclosure requirements. The project has shipped steady commits and new tags over the past year, with an active issue tracker and documentation covering installation, mail setup and customisation.
Deployment notes
Run the application container alongside MariaDB. It listens on port 80, and the key environment variables are the database host, name, credentials and ESPOCRM_SITE_URL. The first visit opens a web installer where you create the administrator and optionally load sample data. Most problems come from three places: the data and custom directories must be writable and persistent or attachments and custom layouts vanish; mail synchronisation requires a separate cron container or messages pile up in the inbox; and the site URL must be correct or redirects and links point at the wrong host. Lock the installer entry point after setup.
- Failed uploads usually mean the data directory is not writable or PHP upload limits are too low.
- If mail stops synchronising, check that the cron container is running and IMAP is enabled.
- Broken styling after a proxy change almost always traces back to an incorrect site URL.
- Chinese search misses records when the database charset is not utf8mb4.
Resource footprint
Application plus database typically uses 700 MB to 1.1 GB of memory, enough for around twenty users on a 2 CPU / 4 GB server. The image is about 700 MB. Heavy mail volumes or full-text search benefit from an SSD and a larger MariaDB buffer pool. A single-machine deployment is fine at first; when the team grows, moving the database to its own host requires little application change.
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
- Failed uploads usually mean the data directory is not writable or PHP upload limits are too low.
- If mail stops synchronising, check that the cron container is running and IMAP is enabled.
- Broken styling after a proxy change almost always traces back to an incorrect site URL.
- Chinese search misses records when the database charset is not utf8mb4.
Who should use it
Ideal for sales-driven businesses: distributors, service firms, training providers and multi-location shops. It has no stock or general-ledger module, so pair it with InvenTree or Dolibarr when needed. Compared with paid CRM, you gain data ownership and editable fields at the cost of maintaining backups, security and upgrades yourself.
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] EspoCRM: Privately Hosted CRM and Sales Pipeline” 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, email accounts and roles, HTTPS proxy
WeChat: ITcloub · Bring your own server and domain · Full refund if deployment fails