Self-host Twenty CRM with Levelrail
An open-source CRM you fully control, built to look and feel like a modern spreadsheet.
- Authortwentyhq
- LicenceAGPL-3.0
- Memory1 GiB
- Archarm64
- Services3
How to self-host Twenty CRM
-
Pull the images
3 images are pulled on your server.
Show images
postgres:16-alpineredis:7-alpinetwentycrm/twenty:v1.15
-
Create the app
3 services start in a single Compose app, with 3 named volume mounts for your data, on port 3000.
-
Fill in the secrets
3 secrets are generated and stored encrypted, 9 settings are preset, you do not have to fill in anything.
-
Open it
Without a domain the app gets an sslip.io address; add --domain SERVICE=HOST to use your own.
Twenty CRM requirements
- Memory
- About 1 GiB
- Architectures
- amd64 image published, arm64 image published
- Ports
- 3000
- Domain
- Optional, an sslip.io address is used without one
- Settings
- none to fill in
- License
- AGPL-3.0, network copyleft (agpl) license
- Listed. It is in the catalog but not verified. Back up the data volume before changing an image tag.
- Host ports. It publishes port 3000 on the host, so open them in the VPS firewall only if you want that.
Install Levelrail first
On a server with Levelrail running, run the command above, or open the dashboard: Apps, New app, Browse templates, then Twenty CRM. New to Levelrail? Install it on a fresh VPS first.
docker pull ghcr.io/glincker/levelrail:latest Then levelrail-cli login --device. See Getting started and the Twenty CRM docs page.
Deploy Twenty CRM your way
Every format below deploys the same pinned images. Pick the one that fits how you work.
Deploy Twenty CRM from the CLI
levelrail-cli templates deploy twenty --name my-twenty Deploy Twenty CRM with the API
curl -X POST -H "Authorization: Bearer $TOKEN" \
https://levelrail.example.com/api/v1/service-templates/twenty/deploy Twenty CRM configuration
Twenty CRM services
| Service | Image | Ports | Volumes |
|---|---|---|---|
| postgres | postgres:16-alpine | none | twenty_postgres_data -> /var/lib/postgresql/data |
| redis | redis:7-alpine | none | twenty_redis_data -> /data |
| twenty | twentycrm/twenty:v1.15 | 3000 | twenty_storage -> /app/packages/twenty-server/.local-storage |
Twenty CRM environment variables
| Variable | Service | Value |
|---|---|---|
| POSTGRES_DB | postgres | Preset by the template |
| POSTGRES_PASSWORD | postgres | Generated at deploy |
| POSTGRES_USER | postgres | Preset by the template |
| APP_SECRET | twenty | Generated at deploy |
| CACHE_STORAGE_TYPE | twenty | Preset by the template |
| ENABLE_DB_MIGRATIONS | twenty | Preset by the template |
| FRONT_BASE_URL | twenty | Preset by the template |
| MESSAGE_QUEUE_TYPE | twenty | Preset by the template |
Show all 12 variables
- PG_DATABASE_URLtwentyGenerated at deploy
- REDIS_URLtwentyPreset by the template
- SERVER_URLtwentyPreset by the template
- STORAGE_TYPEtwentyPreset by the template
Ports and volumes
- Ports
- 3000
- Volumes
- 3 named mounts: twenty_postgres_data -> /var/lib/postgresql/data, twenty_redis_data -> /data, twenty_storage -> /app/packages/twenty-server/.local-storage
Twenty CRM FAQ
How much memory does Twenty CRM need?
The catalog lists about 1 GiB of memory for Twenty CRM across its 3 services.
Does Twenty CRM run on arm64?
For Twenty CRM, an arm64 image is published; amd64 is image published.
What licence is Twenty CRM under?
Twenty CRM is licensed under AGPL-3.0, which is network copyleft, so source sharing also applies when it is offered as a hosted service.
Does Twenty CRM need configuration before it starts?
No. The template fills in its own defaults and generates secrets at deploy time.
Which database does Twenty CRM bundle?
The template includes Postgres and Redis, running as its own service.
Which ports does Twenty CRM use?
Twenty CRM listens on port 3000 inside the stack.
Where does Twenty CRM keep its data?
In named volumes: twenty_postgres_data mounted at /var/lib/postgresql/data, twenty_redis_data mounted at /data and twenty_storage mounted at /app/packages/twenty-server/.local-storage.
Can I deploy Twenty CRM on Dokploy or Dokku?
The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list has an entry with the id twenty for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image postgres:16-alpine, redis:7-alpine, twentycrm/twenty:v1.15 is what you deploy there.