Self-Hosted CRM with Docker and PostgreSQL

Run the Customermates application and PostgreSQL on infrastructure you control. The self-hosted edition includes the core CRM and MCP, but not the hosted inbox or Mate.

AGPL core • Docker Compose • PostgreSQL 16

Explore the productPublic, seeded demo of hosted Customermates. It uses synthetic sample data; no customer account or customer data is shown. When Mate is enabled for this demo environment, it starts closed. This illustrates the managed product UI, not a self-hosted deployment.Try these three things1Scan the seeded overview2Open a core CRM record3Check how the workspace is organized
demo.customermates.com · liveOpen

Customermates is a self-hosted CRM you can run as two Docker Compose services: the application and PostgreSQL 16. It is a good fit when your team wants to operate its CRM infrastructure and use an open-source core. It is not the self-hosted edition of every Customermates Cloud feature.

At a glance

Runs on your infrastructure

The Customermates application and PostgreSQL 16 run as two services in the tracked Docker Compose deployment.

Included product surface

Core CRM records, custom fields and views, REST, webhooks and MCP under Starter entitlements.

You operate

Network access, TLS, updates, backups, restore tests, monitoring and every configured external provider.

Cloud-only boundary

Connected messaging, the unified inbox, connected calendar, hosted Mate and hosted AI credits stay outside self-hosting.

Deployment

Docker Compose

Database

PostgreSQL 16

CRM core

Five record families

Interfaces

REST, webhooks and MCP

Entitlements

Starter baseline

What runs in your infrastructure?

The tracked deployment contains:

  • the Customermates application image;
  • a PostgreSQL 16 database;
  • the core records for contacts, organizations, deals, services and tasks; and
  • REST, webhooks and MCP access for external AI clients.

The Compose file does not bundle n8n, an AI model, an email-delivery provider or a separate worker. Authentication emails still require the configured external delivery service. If you connect any provider, you operate that integration separately and should review the data it receives.

What is included and excluded?

CapabilitySelf-hosted Customermates
Contacts, organizations, deals, services and tasksIncluded
Custom fields, table, card and kanban viewsIncluded
REST API, webhooks and MCPIncluded
Entitlement baselineStarter
Hosted Mate assistant and hosted AI creditsNot included
Unified inbox and connected messaging accountsNot included
Read-only connected calendar viewNot included
Shared connected accountsNot included

The unified CRM inbox is a managed-cloud feature from Pro upward. Self-hosting remains focused on the CRM's open-source core and external MCP clients.

Open-source and commercial code boundaries

First-party material outside ee/ is licensed under AGPL-3.0-only. Inside ee/, material is commercially licensed except for the client-side images, fonts, CSS and JavaScript material identified as AGPL Client Material in Section 6 of ee/LICENSE.md. Review both licenses before modifying, redistributing or operating the software for your use case.

That distinction matters when comparing an open-source CRM: a public repository alone does not tell you which code you may use under which terms.

What control does self-hosting provide?

You choose where the application and PostgreSQL run and how you configure network access, backups, retention and updates. That is meaningful infrastructure control, but it is not an automatic compliance, security or air-gap guarantee.

Connected services remain separate processing boundaries. OAuth providers, SMTP, monitoring, workflow tools and external AI providers receive whatever your configuration sends to them. A self-hosted installation sends no Sentry data unless you configure a Sentry DSN, but that narrow default is not a blanket no-telemetry promise.

Self-hosted or managed cloud?

Choose self-hosting when…Choose managed cloud when…
your team can operate Docker and PostgreSQLyou want Customermates to operate the application and database
the Starter feature boundary fitsyou need the unified inbox or connected calendar view
you want external AI clients to use MCPyou want cloud plan entitlements and managed connected accounts
you will own updates, backups and recoveryyou prefer a subscription with managed operations

There is no dedicated CRM-record import or export workflow. Treat any move between systems as a separate migration project using documented interfaces and a procedure you validate.

How to evaluate the deployment

  1. Inspect the exact deployment

    Read the self-hosting guide and review the current Compose file in the repository.

  2. Check the edition boundary

    Confirm that Starter entitlements cover the records, views and interfaces your workflow needs.

  3. Map external services

    List every SMTP, OAuth, monitoring, workflow or AI provider you plan to configure and the data each one receives.

  4. Design operations

    Define backups, tested restoration, upgrades, TLS, monitoring and access control for your environment.

  5. Test without customer data

    Run the complete workflow in a non-production environment before the system handles real records.

Frequently asked questions

Is Customermates fully open source?

First-party material outside ee/ is AGPL-3.0-only. Inside ee/, the client material identified in Section 6 of ee/LICENSE.md is also AGPL-3.0-only; the remaining first-party material uses the commercial license. Review both license files for the exact boundary.

Does self-hosting include the unified inbox?

No. Self-hosted deployments use the Starter entitlement baseline, which has no messaging accounts, unified inbox, shared accounts or connected calendar view. Those capabilities belong to managed-cloud plans from Pro upward.

Can I use AI with the self-hosted CRM?

Yes, through MCP and an external AI client and provider that you select and fund. The cloud-only Mate assistant and hosted AI credits are not part of self-hosting.

Does self-hosting make the CRM GDPR compliant?

No deployment model creates compliance by itself. Self-hosting lets you choose the application and database location, but your organization remains responsible for configuration, providers, contracts, security controls, retention and legal assessment.

What does the official Docker Compose stack contain?

It contains the Customermates application and PostgreSQL 16. n8n, AI models, SMTP, identity providers and monitoring services are separate when you choose to connect them.

Customermates

Ready to evaluate self-hosting?

Review the deployment requirements and product boundaries before you put the CRM on your infrastructure.

The operator owns infrastructure, updates, backups and connected providers.