---
title: "Deploy Twenty CRM"
description: "One-click Twenty CRM: app, worker, Postgres, Redis and file storage"
category: "Other"
url: https://railway.com/deploy/twenty-crm-1
---

# Deploy Twenty CRM

One-click Twenty CRM: app, worker, Postgres, Redis and file storage

**[Deploy Twenty CRM on Railway](https://railway.com/template/twenty-crm-1)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/twenty-crm-1/manifest.json

- **Creator:** leadgrow's Projects
- **Category:** Other

## Template content

### twenty-worker

- **Image:** twentycrm/twenty:v2.49.0
- **Start command:** `yarn worker:prod`

### Redis https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg

- **Image:** redis:8.2
- **Start command:** `/bin/sh -c "rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH --maxmemory-policy noeviction"`

### twenty

- **Image:** twentycrm/twenty:v2.49.0
- **Health check:** /healthz
- **Public domain:** Yes

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:18

## Buckets

- **twenty-files**

## Documentation

# Deploy and Host Twenty CRM with Railway

Twenty is the open-source CRM: a modern, fast alternative to Salesforce and HubSpot for managing companies, people, opportunities and workflows. This template is a real one-click setup. One click gives the full Twenty stack, wired together and ready to sign in.

## About Hosting Twenty CRM

Twenty runs as two processes from the same image: the web app, which also runs database setup and migrations on boot, and a background worker for email and calendar sync, workflows and imports. Both need Postgres, Redis and shared file storage. This template deploys all of it: the official Twenty image as app and worker, Postgres and Redis on persistent volumes and Railway's private network, and a Railway Storage Bucket for uploads, since the two processes can't share a disk. Passwords and the encryption key are generated per deploy, so there's nothing to fill in. The first boot takes about 5 minutes. Sign up as soon as it's live: the first account becomes the admin.

## Common Use Cases

- A self-hosted CRM for a sales team that wants to own its data
- One separate CRM instance per client, for agencies
- A CRM with an API and webhooks for custom pipelines and automation
- Replacing a per-seat SaaS CRM with a flat infrastructure cost

## Dependencies for Twenty CRM Hosting

- Twenty (`twentycrm/twenty`, app and worker)
- PostgreSQL
- Redis
- S3-compatible storage (Railway Storage Bucket)

### Deployment Dependencies

- Twenty source and docs: https://github.com/twentyhq/twenty
- Self-hosting configuration (email, Google and Microsoft sign-in): https://twenty.com/developers/section/self-hosting
- Template source and terminal deploy script: https://github.com/LeadGrowGTM/twenty-railway

### Implementation Details

The worker runs `yarn worker:prod` and skips migrations and cron registration, which the app handles. Redis runs with `--maxmemory-policy noeviction`, as Twenty's job queue requires. To use a custom domain, add it to the `twenty` service and set `SERVER_URL` to it.

## Why Deploy Twenty CRM on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Twenty CRM on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — A Self-Hosted & Modern Roleplaying Platform
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/twenty-crm-1
