Skip to main content

Running Twenty CRM for your team: hosting, sign-in, backups and upgrades

Disclosure: this post is written by the DollarDeploy team. DollarDeploy deploys apps, including Twenty, to servers you own.

Twenty is an open-source CRM your team can run on its own server. Getting it running takes a few minutes. Keeping it usable for five people over a year is the real work: sign-in, email, backups and upgrades.

This guide is the checklist for that second part.

Why it matters

A CRM holds your pipeline, your contacts and your notes from every sales call. When it is down or its data is gone, the team notices that day.

  • Self-hosting moves that job to you. Nobody else patches the server, keeps the backups or runs the upgrade.
  • The good news: Twenty is a small, well-defined stack, so the checklist is short.

What you are running

The Twenty Docker Compose setup has four parts:

  • server: the web app and API on port 3000. It runs the database migrations and the scheduled jobs.
  • worker: the same image, started as a background worker for queued jobs.
  • db: PostgreSQL 16.
  • redis: the job queue and cache.

By the numbers: plan for a server with 4 GB of RAM and 2 vCPU and at least 10 GB of disk. That is what the DollarDeploy template asks for. Below 4 GB, the first boot and the migrations get slow.

1. Pick one URL and keep it

Twenty builds its links and sign-in callbacks from the server URL.

  • Choose the final domain first, for example crm.yourstartup.com, with HTTPS.
  • Changing it later means updating the sign-in callbacks and every link your team has bookmarked.

2. Single workspace, unless you really need more

Twenty runs in single-workspace mode by default (IS_MULTIWORKSPACE_ENABLED=false).

  • For one company, keep it that way. The first user who signs up becomes the admin, so make that you.
  • Multi-workspace mode gives each workspace its own subdomain and needs a wildcard DNS record (*.your-domain.com). It suits agencies, not a 2-10 person startup.

3. Set up email before you invite the team

Without email, Twenty cannot send verification or notification emails.

  • Configure SMTP in Settings -> Admin Panel -> Configuration Variables -> Email: EMAIL_DRIVER=smtp, EMAIL_SMTP_HOST, EMAIL_SMTP_PORT, EMAIL_SMTP_USER, EMAIL_SMTP_PASSWORD.
  • Use a transactional email service or your Google Workspace / Microsoft 365 account. Gmail uses smtp.gmail.com on port 465 with an App Password; Office 365 uses smtp.office365.com on port 587.
  • Send yourself a test before you invite anyone.

4. Let people sign in with the accounts they already have

Fewer passwords means fewer "I'm locked out" messages to you.

  • Google sign-in: AUTH_GOOGLE_CLIENT_ID, AUTH_GOOGLE_CLIENT_SECRET and AUTH_GOOGLE_CALLBACK_URL=https://<your-domain>/auth/google/redirect.
  • Microsoft sign-in: AUTH_MICROSOFT_ENABLED=true, plus the client id, secret and https://<your-domain>/auth/microsoft/redirect.
  • Offboarding then follows your company accounts: when someone leaves and their Google or Microsoft account is closed, they can no longer sign in. Still remove them from the workspace.

5. Store the encryption key somewhere safe

Twenty encrypts the secrets it stores (for example connected mail accounts) with ENCRYPTION_KEY.

  • If you lose the key, you lose access to every secret in the database, even with a perfect backup.
  • Put it in your team password vault the day you deploy. If you do not have one yet: Sharing passwords in a small startup.

6. Back up the data, then test a restore

Two things hold your CRM: the PostgreSQL database and uploaded files.

  • Files: keep them in S3-compatible storage (STORAGE_TYPE plus the S3 variables) so they survive container rebuilds, or back up the local ./data/ folder.
  • Database: take a daily pg_dump, not only a copy of the database files. A file copy of a running PostgreSQL can be inconsistent.
  • Keep the backups off the server and run a restore once a month on a spare server. More on schedules and restore tests: Backups for a small startup.

7. Upgrade on purpose, not by accident

Twenty ships often. Pin the version and upgrade when you choose to.

  • Pin the image tag (the TAG variable in the template) instead of latest.
  • Before each upgrade, take a backup. Then change TAG and redeploy.
  • Migrations run on startup, so there is no separate migration command. Since v1.23, Twenty supports jumping straight to the latest release without installing every version in between.
  • Read the release notes for breaking changes, then check sign-in and one record after the upgrade.

8. Know when it breaks

  • Add an uptime monitor on the CRM URL that alerts your team chat.
  • Check the logs of the server and worker after every upgrade: a worker that fails on startup means emails and scheduled jobs silently stop.

How DollarDeploy handles it

DollarDeploy has a Twenty CRM template that deploys the Docker Compose stack above to a server you own in about 3 minutes, with HTTPS on your domain.

  • Upgrades: change TAG in the app's environment and redeploy from the dashboard.
  • Backups: manual backups on every plan, scheduled backups with retention on paid plans, stored in S3-compatible storage. App backups archive the app folder and its Docker Compose volumes; add a pg_dump with the custom backup prepare command for a consistent database copy.
  • Alerts and logs: you get notified when a deploy, backup or task fails, and you can read the app's logs in the dashboard.
  • Access: give teammates their own DollarDeploy role per app, so the person who fixes the CRM does not need the server's SSH key.

Yes, but

  • DollarDeploy does not alert when the app is down. Pair it with an uptime monitor (step 8).
  • Restore is a manual step. You download the backup and restore it yourself; test it before you need it.
  • Twenty's own cloud is the right choice if nobody on the team wants to own a server at all.

The bottom line

Running Twenty for a small team is eight decisions: one URL, one workspace, working email, company sign-in, a safe encryption key, tested backups, pinned upgrades and an uptime check. Make them once on day one and the CRM stays boring, which is what you want from it.


Your team's CRM, without you as its sysadmin. DollarDeploy deploys Twenty to a server you own and runs the operations around it: HTTPS, scheduled backups, alerts when a deploy or backup fails, monitoring and logs, and upgrades with one redeploy. Nothing for you to maintain. Deploy Twenty with DollarDeploy, free to start, no card needed.

All posts Share

Your app deserves a real URL. Ship it to production.