Back to all templates
Twenty CRM logo

Twenty CRM

Application2048MB+ RAM

Modern open-source CRM with a beautiful interface

crmmodernsalescontacts

Deploy Twenty CRM in 3 Steps

1

Connect Your VPS

Add your server credentials to Server Compass

2

Select Twenty CRM

Choose from our template library

3

Deploy & Configure

Fill in settings and click Deploy

No Docker knowledge required
Self-Deploy Guide

DIY Twenty CRM Deployment

Learn how to self-host Twenty CRM with this hands-on deployment guide.

1

SSH into Your Server

Launch your preferred terminal and connect to your VPS using SSH.

terminal
# Log into your server
ssh root@<your-server-ip>

# If using key-based auth
ssh -i ~/.ssh/my-key root@<your-server-ip>

First time? Docker not installed? Run: curl -fsSL https://get.docker.com | sh

2

Create Working Directory

Prepare a directory for your application files and configuration.

terminal
# Create and navigate to project directory
mkdir -p ~/apps/twenty-crm
cd ~/apps/twenty-crm
3

Configure Your Containers

Create the Docker Compose configuration file with these contents:

docker-compose.yml
services:
  twenty:
    image: twentycrm/twenty:latest
    ports:
      - "3000:3000"
    environment:
      - SERVER_URL=<your-server-url>
      - FRONT_BASE_URL=<your-front-base-url>
      - HOST=0.0.0.0
      - NODE_ENV=production
      - APP_SECRET=<your-app-secret>
      - ACCESS_TOKEN_SECRET=<your-access-token-secret>
      - LOGIN_TOKEN_SECRET=<your-login-token-secret>
      - REFRESH_TOKEN_SECRET=<your-refresh-token-secret>
      - FILE_TOKEN_SECRET=<your-file-token-secret>
      - PG_DATABASE_URL=postgresql://twenty:<your-db-password>@db:5432/twenty
      - REDIS_URL=redis://redis:6379
    volumes:
      - twenty_data:/app/.local-storage
    restart: unless-stopped
    depends_on:
      db:
        condition: service_healthy
      redis:
        condition: service_healthy

  db:
    image: postgres:16-alpine
    environment:
      - POSTGRES_DB=twenty
      - POSTGRES_USER=twenty
      - POSTGRES_PASSWORD=<your-db-password>
    volumes:
      - db_data:/var/lib/postgresql/data
    restart: unless-stopped
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U twenty -d twenty"]
      interval: 10s
      timeout: 5s
      retries: 5
      start_period: 30s

  redis:
    image: redis:7-alpine
    volumes:
      - redis_data:/data
    restart: unless-stopped
    healthcheck:
      test: ["CMD", "redis-cli", "ping"]
      interval: 10s
      timeout: 5s
      retries: 5

volumes:
  twenty_data:
  db_data:
  redis_data:
Setup Variables
PORTHost port to expose(default: 3000)
SERVER_URLServer URL
FRONT_BASE_URLFrontend URL
APP_SECRETApp secret
ACCESS_TOKEN_SECRETAccess token secret
LOGIN_TOKEN_SECRETLogin token secret
4

Deploy with Docker Compose

Launch the application stack using Docker Compose.

terminal
# Deploy the application
docker compose up -d

# Check container health
docker compose ps

# Monitor logs
docker compose logs -f --tail=100
5

Open Required Ports

Enable external access by opening the necessary port.

terminal
# Allow the application port through firewall
sudo ufw allow 3000/tcp
sudo ufw reload

# Access your app at:
# http://your-server-ip:3000
Skip the Terminal

There's an easier way. Meet Server Compass.

Let Server Compass handle the complexity. Deploy Twenty CRM with a simple, intuitive interface.

  • Intuitive dashboard
  • Deploy in 3 minutes
  • Free SSL included
  • Blue-green deploys
  • Real-time logs
  • Version history
Download Server Compass$29 one-time • Lifetime license

After Deployment

After deploying Twenty CRM with Server Compass, complete these steps to finish setup

1

Create your account

2

Import contacts and companies

3

Set up pipelines and deals

Need help? Check out our documentation for detailed guides.

Twenty CRM FAQ

Common questions about self-hosting Twenty CRM

How do I deploy Twenty CRM with Server Compass?

Simply download Server Compass, connect to your VPS, and select Twenty CRM from the templates list. Fill in the required configuration and click Deploy. The entire process takes under 3 minutes.

What are the system requirements for Twenty CRM?

Twenty CRM requires a minimum of 2048MB RAM. We recommend a VPS with at least 4096MB RAM for optimal performance. Any modern Linux server with Docker support will work.

Can I migrate my existing Twenty CRM data?

Yes! Server Compass provides volume mapping that allows you to import existing data. You can also use standard Twenty CRM backup and restore procedures.

How do I update Twenty CRM to the latest version?

Server Compass makes updates easy. Simply click the Update button in your deployment dashboard, and the latest Twenty CRM image will be pulled and deployed with zero downtime.

Is Twenty CRM free to self-host?

Twenty CRM is open-source software. You only pay for your VPS hosting (typically $5-20/month) and optionally Server Compass ($29 one-time). No subscription fees or per-seat pricing.

Ready to Self-Host Twenty CRM?

Download Server Compass and deploy Twenty CRM to your VPS in under 3 minutes. No Docker expertise required.

Download Server Compass