
Deploy MedusaJS + Storefront (Railway Bucket)
MedusaJS + Storefront + Railway Bucket (Optimized for low-cost)
Redis
Just deployed
/data
AssetLinker
Just deployed
Just deployed
/var/lib/postgresql/data
Just deployed
Just deployed
Bucket
Bucket
Just deployed

Deploy and Host MedusaJS + Storefront (Railway Bucket) on Railway
MedusaJS + Storefront (Railway Bucket) is a streamlined monorepo deployment template that combines the MedusaJS 2.0 backend and a Next.js 15 wavefront. It is pre-configured to utilize Railway's internal object storage (Bucket) for media assets, eliminating the need for services like MinIO, keeping your entire infrastructure stack unified on Railway.
About Hosting MedusaJS + Storefront (Railway Bucket)
Hosting this stack on Railway involves deploying the Medusa backend and Next.js storefront as separate services within a single Railway project. The key differentiator is the storage configuration: instead of connecting to an external cloud provider, the Medusa backend connects to a Railway-provisioned object storage bucket (or compatible service) via the S3 plugin. This setup simplifies configuration, reduces egress costs, and keeps your data locality within your Railway project. The monorepo structure allows for synchronized development and deployment of both the API and the frontend.
Common Use Cases
- Rapid Prototyping: Quickly spin up a fully featured e-commerce store with working file uploads without setting up AWS accounts.
- Cost-Effective Staging: Run a complete replica of your production store for testing, keeping costs low by using Railway's integrated services.
- Unified Infrastructure: For businesses that prefer a "single pane of glass" for their ops, hosting DB, Redis, App, and Storage all on Railway simplifies monitoring and billing.
Dependencies for MedusaJS + Storefront (Railway Bucket) Hosting
- MedusaJS Backend: The core e-commerce engine (v2.0+).
- Next.js Storefront: The frontend interface for customers.
- PostgreSQL: Primary database for Medusa data.
- Redis: Used for event caching and session management.
- Railway Bucket / Object Storage: S3-compatible storage for product images and assets.
- AssetLinker: Service to sign and serve assets from the Railway Bucket (workaround till we get public buckets)
Deployment Dependencies
Why Deploy MedusaJS + Storefront (Railway Bucket) 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 MedusaJS + Storefront (Railway Bucket) 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.
Template Content