10 Sentinels Active
SENTINEL 01: [AEGIS] AUDITING POCKETBASE INFRASTRUCTURE...
Back to Self-Hosted Stacks
Twenty

Deploy Twenty

A modern open-source CRM alternative to Salesforce and Pipedrive.

Quick Start

1

Create a directory

mkdir twenty-self-hosted && cd twenty-self-hosted
2

Create config file

Copy the content from the Config tab below into a file named docker-compose.yml

3

Deploy

docker compose up -d
Fast Track

Deploy Twenty in Minutes

Use our optimized Docker templates to deploy Twenty on any cloud provider. Get $200 in free credit to start on DigitalOcean.

Start with free creditDeploy on DigitalOcean
$200

Metadata

License
AGPL-3.0
Language
TypeScript
Last Updated
10/14/2026
Category
CRM

Configuration

yaml
services:
  twenty:
    image: twentycrm/twenty:latest
    container_name: twenty
    restart: unless-stopped
    depends_on:
      db:
        condition: service_healthy
      redis:
        condition: service_started
    ports:
      - "3000:3000"
    environment:
      - PG_DATABASE_URL=postgres://twenty:twenty@db:5432/twenty
      - REDIS_URL=redis://redis:6379
      - ACCESS_TOKEN_SECRET=supersecret
      - LOGIN_TOKEN_SECRET=supersecret
      - REFRESH_TOKEN_SECRET=supersecret
      - FILE_TOKEN_SECRET=supersecret

  db:
    image: postgres:14-alpine
    container_name: twenty-db
    restart: unless-stopped
    environment:
      - POSTGRES_USER=twenty
      - POSTGRES_PASSWORD=twenty
      - POSTGRES_DB=twenty
    volumes:
      - twenty_db_data:/var/lib/postgresql/data
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U twenty"]
      interval: 10s
      timeout: 5s
      retries: 5

  redis:
    image: redis:alpine
    container_name: twenty-redis
    restart: unless-stopped

volumes:
  twenty_db_data:

Community Notes

Help others by adding context, corrections, or warnings about this tool. Sign in to contribute.

No community notes yet. Be the first to add context.