Levelrail
Skip to content

Self-host Twenty CRM with Docker ​

An open-source CRM you fully control, built to look and feel like a modern spreadsheet.

This page describes the Levelrail template for Twenty CRM (Productivity). It deploys the services below as one Docker Compose app on your own server.

Project site: https://docs.twenty.com.

Recommended memory: about 1024 MiB.

Services, ports and volumes ​

ServiceImageContainer portsVolumes
postgrespostgres:16-alpinenone
twenty_postgres_data -> /var/lib/postgresql/data
redisredis:7-alpinenone
twenty_redis_data -> /data
twentytwentycrm/twenty:v1.153000
twenty_storage -> /app/packages/twenty-server/.local-storage

Environment variables ​

ServiceVariableValue
postgresPOSTGRES_DBPreset in the template
postgresPOSTGRES_PASSWORDGenerated at deploy
postgresPOSTGRES_USERPreset in the template
twentyAPP_SECRETGenerated at deploy
twentyCACHE_STORAGE_TYPEPreset in the template
twentyENABLE_DB_MIGRATIONSPreset in the template
twentyFRONT_BASE_URLPreset in the template
twentyMESSAGE_QUEUE_TYPEPreset in the template
twentyPG_DATABASE_URLGenerated at deploy
twentyREDIS_URLPreset in the template
twentySERVER_URLPreset in the template
twentySTORAGE_TYPEPreset in the template

Passwords and keys marked as generated are created for you when the app is deployed and stored as secrets. Values are not shown here.

Deploy Twenty CRM with Levelrail ​

In the dashboard, open Apps, choose New app, then Browse templates, and select Twenty CRM. Review the Compose body and deploy.

With the CLI:

levelrail-cli templates deploy twenty --name my-twenty

See Service template catalog for how templates work, and Getting started if you have not installed Levelrail yet.

More Productivity templates ​

All templates are listed in the self-host gallery.

Released under the Apache 2.0 License.