Loading...
Loading...
Self-host Customermates on your own infrastructure with Docker Compose, PostgreSQL, and a production-ready Next.js app container.
This page shows how to run a self-hosted Customermates deployment with Docker Compose and PostgreSQL. If you are still deciding between deployment models, compare Self-Hosted vs Cloud first.
Self-hosted deployments run the community edition. Enterprise features (Audit Logging, Single Sign-On, AI Agent, Whitelabeling) require a separate license.
mkdir customermates && cd customermates
BASE=https://raw.githubusercontent.com/customermates/customermates/main
curl -O $BASE/docker-compose.yml
curl -O $BASE/.env.selfhost.template
curl -O $BASE/scripts/selfhost-{setup,update,restart,reset}.sh
chmod +x selfhost-*.sh
mv .env.selfhost.template .env
# edit .env with your values
./selfhost-setup.shThe setup script validates your .env, pulls the app image, runs database migrations, and starts all services.
docker compose ps
docker compose logs -f appFor ongoing maintenance, see Managing Your Installation.