---
title: "Deploy Twenty CRM with Worker & Shared S3"
description: "CRM with Postgres, Redis, background worker and shared S3 file storage."
category: "Other"
url: https://railway.com/deploy/twenty-crm-with-worker-and-shared-s3
---

# Deploy Twenty CRM with Worker & Shared S3

CRM with Postgres, Redis, background worker and shared S3 file storage.

**[Deploy Twenty CRM with Worker & Shared S3 on Railway](https://railway.com/template/twenty-crm-with-worker-and-shared-s3)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/twenty-crm-with-worker-and-shared-s3/manifest.json

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

## Template content

### Twenty

- **Image:** twentycrm/twenty@sha256:43fab4bffacdcd63ff3c9257b7f8985a4424d81e9eb43982b9c16a841d555e52
- **Health check:** /healthz
- **Public domain:** Yes

### Postgres

- **Image:** postgres@sha256:ca0bd484cb98bf4b24eb1010e73fb3fcbd6714d240fbc1a10eea5b7dbecb641d

### Redis

- **Image:** redis@sha256:3811787313eba226a2ef38658c6ccb91cd5e110edc89c37767de373120a0e5a0
- **Start command:** `/bin/sh -c 'exec docker-entrypoint.sh redis-server --requirepass "$REDIS_PASSWORD" --appendonly yes --save 60 1 --maxmemory-policy noeviction --bind 0.0.0.0 :: --dir /data'`

### Twenty Worker

- **Image:** twentycrm/twenty@sha256:43fab4bffacdcd63ff3c9257b7f8985a4424d81e9eb43982b9c16a841d555e52
- **Start command:** `/app/entrypoint.sh yarn worker:prod`

## Buckets

- **TwentyFiles**

## Documentation

# Deploy and Host Twenty CRM with Worker & Shared S3 on Railway

CRM with Postgres, Redis, background worker and shared S3 file storage.

## About Hosting Twenty CRM with Worker & Shared S3

Deploying this template creates Postgres, Redis, Twenty, Twenty Worker in your Railway project. The application receives an HTTPS domain automatically. Database and Redis services, when included, use private networking and generated credentials. Persistent data is stored on the included volumes or object storage, so application redeploys do not discard it.

## Why Deploy Twenty CRM with Worker & Shared S3 on Railway

- Separate Twenty web and background worker services, using the same official image digest.
- Private PostgreSQL 16 and password-protected Redis with persistent storage.
- One Railway S3-compatible bucket shared by server and worker; files are not split across local disks.
- Generated encryption/signing keys, referenced by the worker rather than generated twice.

## Common Use Cases

- Track contacts, companies and sales opportunities.
- Coordinate customer follow-ups and background integrations.
- Keep uploaded CRM files available to both web and worker services.

## Dependencies for Twenty CRM with Worker & Shared S3

- A Railway account and a plan with capacity for 4 service(s).
- Included services: Postgres, Redis, Twenty, Twenty Worker.
- 2 persistent volume(s), provisioned by this template.
- One shared Railway S3-compatible object storage bucket, provisioned by this template.
- External integrations, mail delivery and your own business data are configured after installation as needed.

## First launch

1. Deploy and wait for the database, Redis and storage bucket to become ready. Apps may restart while their dependencies initialize.
2. Open the Twenty web domain and complete the first-workspace setup.
3. Keep the Twenty Worker service running for background jobs.
4. Configure SMTP, calendar and email integrations in the application when you need them.

## Operations

Back up PostgreSQL and the TwentyFiles bucket; preserve ENCRYPTION_KEY. The server runs migrations and cron registration while the worker disables both. No unused local file volumes are included. After a domain change update SERVER_URL on Twenty; the worker follows it by reference.

Images are pinned to verified upstream image digests captured on 2026-10-17. Review upstream release notes, back up persistent data and update the image deliberately when upgrading. Railway charges the deployer for running services, storage and network usage.

## Support and upstream

For Railway template wiring or deployment issues, use the discussion/support link on this template page. Include service names and redacted logs; omit passwords and tokens. Application documentation:

[Official deployment configuration](https://github.com/twentyhq/twenty/blob/main/packages/twenty-docker/docker-compose.yml) · [Twenty self-hosting](https://twenty.com/developers/section/self-hosting)


## 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-with-worker-and-shared-s3
