Hostingul agentic a sosit. Conectează-te acum la MCP
CloudLinux.ro
Aplicații

Cum instalezi Twenty CRM pe un Cloud VPS

Actualizat 11/29/2026

CRM modern open-source, alternativă la Salesforce și HubSpot: companii, persoane, oportunități de vânzare, sarcini, notițe și emailuri într-un singur loc, cu vizualizări tip tabel și kanban, câmpuri personalizate, API și webhooks. Contul de administrator și spațiul de lucru sunt create la instalare, cu HTTPS pe adresa serverului. Recomandat: plan cu cel puțin 4 GB RAM.

Versiunea self-hosted elimină abonamentele per utilizator: plătești doar serverul, indiferent câți colegi folosesc aplicația.

Instalare cu un click pe cloudlinux.ro

Cea mai rapidă variantă: Twenty CRM se instalează automat la prima pornire a unui server nou.

  1. Creează un Cloud VPS din panoul de control.
  2. La pasul de configurare, alege Twenty CRM din catalogul de aplicații.
  3. Pornește serverul. Instalarea rulează automat în fundal câteva minute, iar starea apare pe pagina serverului.
  4. Datele de acces și parolele generate se salvează pe server în /root/app-credentials.txt.

Instalare manuală pe orice server Ubuntu

Dacă preferi să instalezi singur, mai jos este exact scriptul folosit de instalarea automată. Rulează-l ca root pe un server Ubuntu proaspăt (recomandat 24.04). Se oprește la prima eroare, iar la final găsești datele de acces în /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

Poți salva scriptul și ca rețetă în contul tău, ca să-l refolosești la orice server nou.

Pune ghidul în practică pe un VPS propriu

Servere cloud în UE, facturate la oră, gata în câteva minute, cu instalare cu un click pentru zeci de aplicații.

Vezi prețurile

Tutoriale similare