How to install Twenty CRM on a Cloud VPS
Updated 11/29/2026
Twenty is a modern open-source CRM, an alternative to Salesforce and HubSpot: companies, people, sales opportunities, tasks, notes and emails in one place, with table and kanban views, custom fields, an API and webhooks.
The self-hosted version removes per-user subscriptions: you pay only for the server, no matter how many teammates use the app.
One-click install on cloudlinux.ro
The fastest way: Twenty CRM installs automatically at the first boot of a new server.
- Create a Cloud VPS from the control panel.
- In the configuration step, pick Twenty CRM from the app catalog.
- Start the server. The install runs in the background for a few minutes and its status shows on the server page.
- Access details and generated passwords are saved on the server in
/root/app-credentials.txt.
Manual install on any Ubuntu server
If you prefer doing it yourself, below is the exact script our automatic install runs. Execute it as root on a fresh Ubuntu server (24.04 recommended). It stops at the first error, and when it finishes you will find the access details in /root/app-credentials.txt.
export DEBIAN_FRONTEND=noninteractive
cl_firewall
curl -fsSL https://get.docker.com | sh
apt-get install -y jq
mkdir -p /opt/twenty
cd /opt/twenty
ADMIN_EMAIL="admin@${CL_HOSTNAME}"
ADMIN_PASS="$(openssl rand -base64 24 | tr -dc 'A-Za-z0-9' | cut -c1-18)!9"
cat > .env <<ENV
TAG=v2.65.1
SERVER_URL=https://${CL_HOSTNAME}
ENCRYPTION_KEY=$(openssl rand -base64 32)
PG_DATABASE_PASSWORD=$(openssl rand -hex 32)
STORAGE_TYPE=local
ENV
chmod 600 .env
# The official compose, with the web port on loopback behind Caddy.
cat > docker-compose.yml <<'YML'
name: twenty
x-env: &env
PG_DATABASE_URL: postgres://postgres:${PG_DATABASE_PASSWORD}@db:5432/default
SERVER_URL: ${SERVER_URL}
REDIS_URL: redis://redis:6379
STORAGE_TYPE: ${STORAGE_TYPE}
ENCRYPTION_KEY: ${ENCRYPTION_KEY}
services:
server:
image: twentycrm/twenty:${TAG}
restart: always
stop_grace_period: 120s
ports:
- "127.0.0.1:3000:3000"
volumes:
- server-local-data:/app/packages/twenty-server/.local-storage
environment:
<<: *env
NODE_PORT: 3000
depends_on:
db: { condition: service_healthy }
redis: { condition: service_healthy }
healthcheck:
test: curl --fail http://localhost:3000/healthz
interval: 5s
timeout: 5s
retries: 60
worker:
image: twentycrm/twenty:${TAG}
restart: always
command: ["yarn", "worker:prod"]
volumes:
- server-local-data:/app/packages/twenty-server/.local-storage
environment:
<<: *env
DISABLE_DB_MIGRATIONS: "true"
DISABLE_CRON_JOBS_REGISTRATION: "true"
depends_on:
db: { condition: service_healthy }
server: { condition: service_healthy }
db:
image: postgres:16
restart: always
volumes:
- db-data:/var/lib/postgresql/data
environment:
POSTGRES_DB: default
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ${PG_DATABASE_PASSWORD}
healthcheck:
test: pg_isready -U postgres -h localhost -d postgres
interval: 5s
timeout: 5s
retries: 20
redis:
image: redis:7
restart: always
command: ["--maxmemory-policy", "noeviction"]
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 10
volumes:
db-data:
server-local-data:
YML
docker compose pull
docker compose up -d
for i in $(seq 1 120); do curl -fs -o /dev/null http://127.0.0.1:3000/healthz && break; sleep 5; done
curl -fs -o /dev/null http://127.0.0.1:3000/healthz
# The first account becomes the server admin and sign-up closes once its
# workspace exists: both are done here, before Caddy makes the site public.
TOKEN=$(jq -n --arg e "$ADMIN_EMAIL" --arg p "$ADMIN_PASS" \
'{query: "mutation($e: String!, $p: String!) { signUp(email: $e, password: $p) { tokens { accessOrWorkspaceAgnosticToken { token } } } }", variables: {e: $e, p: $p}}' \
| curl -fs http://127.0.0.1:3000/metadata -H 'Content-Type: application/json' -d @- \
| jq -er '.data.signUp.tokens.accessOrWorkspaceAgnosticToken.token')
jq -n '{query: "mutation { signUpInNewWorkspace(input: { displayName: \"Compania mea\" }) { workspace { id } } }"}' \
| curl -fs http://127.0.0.1:3000/metadata -H 'Content-Type: application/json' -H "Authorization: Bearer ${TOKEN}" -d @- \
| jq -e '.data.signUpInNewWorkspace.workspace.id' >/dev/null
{
printf 'Twenty CRM: email %s, parola %s\n' "$ADMIN_EMAIL" "$ADMIN_PASS"
printf 'Contul de administrator si spatiul de lucru sunt create; inregistrarea altor conturi este inchisa. Colegii se invita din Settings > Members.\n'
printf 'Emailul (SMTP) si conectarea casutelor Gmail sau Microsoft se configureaza din panou; pana atunci emailurile aplicatiei doar se logheaza.\n'
printf 'Actualizare: in /opt/twenty schimbi TAG in .env cu versiunea noua, apoi docker compose pull && docker compose up -d\n'
} > /root/app-credentials.txt
cl_expose 'Twenty CRM' 3000
You can also save this script as a recipe in your account and reuse it on any new server.
Put this guide into practice on your own VPS
EU cloud servers, billed hourly, ready in minutes, with one-click installs for dozens of apps.
See pricingRelated tutorials
How to install Memos on a Cloud VPS
Complete Memos guide: one-click install on cloudlinux.ro or manual setup on any Ubuntu server, step by step.
Updated 11/29/2026ApplicationsHow to install Open Notebook on a Cloud VPS
Complete Open Notebook guide: one-click install on cloudlinux.ro or manual setup on any Ubuntu server, step by step.
Updated 11/29/2026ApplicationsHow to install Pocket ID on a Cloud VPS
Complete Pocket ID guide: one-click install on cloudlinux.ro or manual setup on any Ubuntu server, step by step.
Updated 11/29/2026