---
title: "Deploy Strapi with Cloudflare R2"
description: "Deploy and Host Strapi with Cloudflare R2 on Railway"
category: "CMS"
url: https://railway.com/deploy/strapi-with-cloudflare-r2
---

# Deploy Strapi with Cloudflare R2

Deploy and Host Strapi with Cloudflare R2 on Railway

**[Deploy Strapi with Cloudflare R2 on Railway](https://railway.com/template/strapi-with-cloudflare-r2)**

- **Creator:** sungkhum's Projects
- **Category:** CMS
- **Total deploys:** 15

## Template content

### postgres-r2-backups

- **Source:** sungkhum/postgres-r2-backups

### strapi-railway-app

- **Source:** sungkhum/strapi-railway-app
- **Public domain:** Yes

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

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

## Documentation

### What is Strapi with Cloudflare R2?

Strapi is an open-source headless CMS that gives you full control over your content API. When combined with Cloudflare R2 for media storage, it becomes a low-cost, scalable solution for managing content and assets without worrying about expensive bandwidth or egress charges. R2 provides S3-compatible storage at a fraction of the cost of traditional cloud providers.

---

## About Hosting Strapi with Cloudflare R2

Hosting Strapi with Cloudflare R2 on Railway allows you to deploy a production-ready CMS in minutes with minimal running costs. Railway manages the Node.js environment, build pipeline, and database connectivity, while Cloudflare R2 handles all uploaded images, videos, and file assets with S3-compatible APIs. By offloading media to R2, you avoid storage bloat in Railway’s ephemeral filesystem and leverage Cloudflare’s generous free tier and zero-egress pricing. Adding a weekly PostgreSQL database backup flow to R2 ensures your content and configuration are protected and easily restorable. Together, this setup delivers an affordable, fully managed content infrastructure.

---

## Common Use Cases

* **Content-driven websites and blogs** needing a CMS backend without high storage costs.
* **E-commerce or portfolio sites** where image and video assets are served reliably worldwide.
* **Non-profit and small business apps** looking for a budget-friendly, production-grade hosting setup.

---

## Dependencies for Strapi with Cloudflare R2 Hosting

* **Strapi** (Node.js CMS framework)
* **PostgreSQL** (database for content and configuration)
* **@aws-sdk/client-s3** or **strapi-provider-cloudflare-r2** (S3-compatible storage integration)

### Deployment Dependencies

* [Cloudflare R2 Documentation](https://developers.cloudflare.com/r2/)
* [Strapi Documentation](https://docs.strapi.io/)
* [Railway Docs](https://docs.railway.app/)

---

## Why Deploy Strapi with Cloudflare R2 on Railway?

Railway’s one-click deploys and managed infrastructure make it effortless to run Strapi without server maintenance overhead. Pairing it with Cloudflare R2 for asset storage slashes hosting bills since R2 charges no egress fees and offers inexpensive storage. Weekly automated backups to R2 further protect your data at almost no extra cost. This combination gives you the power of a modern headless CMS, the global performance of Cloudflare, and the simplicity of Railway—all optimized for developers and organizations that value both performance and affordability.

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 Strapi with Cloudflare R2 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

- [Libredesk - Complete Setup](https://railway.com/deploy/libredesk-complete-setup) — Complete self-hosted omnichannel customer support desk.
- [Paperless-ngx](https://railway.com/deploy/paperless-ngx-3) — Paperless-ngx — document management with OCR and full-text search
- [Instatic CMS - Postgres](https://railway.com/deploy/instatic-cms-postgres) — Design, build and manage powerful static sites from state-of-the-art CMS

Open this page in a browser: https://railway.com/deploy/strapi-with-cloudflare-r2
