---
title: "Deploy medusajs ecommerce Nextjs, Postgres, Redis"
description: "Full ecommerce solution, manage products, inventory, orders, etc."
category: "Other"
url: https://railway.com/deploy/QvfPwp
---

# Deploy medusajs ecommerce Nextjs, Postgres, Redis

Full ecommerce solution, manage products, inventory, orders, etc.

**[Deploy medusajs ecommerce Nextjs, Postgres, Redis on Railway](https://railway.com/template/QvfPwp)**

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

- **Creator:** Rasmus Puls's Projects
- **Category:** Other
- **Total deploys:** 1,036

## Template content

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

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

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

- **Image:** redis:8.2.1
- **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"`

### medusajs-frontend

- **Source:** https://github.com/rpuls/medusajs-for-railway-boilerplate.git
- **Start command:** `npm run start`
- **Health check:** /api/healthcheck
- **Public domain:** Yes

### medusajs-backend

- **Source:** https://github.com/rpuls/medusajs-for-railway-boilerplate.git
- **Start command:** `npm run seed:once && npm run start`
- **Health check:** /health
- **Public domain:** Yes

## Documentation

# Deploy and Host Medusa 1.x E-commerce (Legacy, unmaintained) on Railway

**This template is no longer maintained.** It deploys Medusa **1.x**, which has been replaced by Medusa 2.0. Dependencies were last updated 21 June 2024 and it receives no fixes or updates. It stays published so existing stores and inbound links keep working.

👉 **New project? Use the maintained Medusa 2.0 template instead: [Medusa 2.0 + Next.js Storefront](https://railway.com/deploy/medusajs-2-0-storefront?referralCode=-Yg50p)**

It deploys a Medusa 2.0 backend, Next.js storefront, Postgres, Redis, MeiliSearch and S3-compatible object storage in one click, and it is actively kept up to date. Step by step guide and video: [funkyton.com](https://funkyton.com/medusajs-2-0-is-finally-here/)

*An independent, community-maintained template by [FUNKYTON](https://funkyton.com/). Not affiliated with, endorsed by, or supported by MedusaJS, Inc. or Railway. "Medusa" is a trademark of MedusaJS, Inc., used here only to describe what this template deploys.*

## About Hosting Medusa 1.x E-commerce (Legacy, unmaintained)

This is the original Medusa 1.x boilerplate: an all-in-one e-commerce stack with backend, admin dashboard and a connected storefront, wired to Postgres and Redis. Railway hosts all of it in one project.

Because Medusa 1.x is superseded, nothing here is being updated. Deploy it only if you specifically need version 1. For anything new, use the [Medusa 2.0 template](https://railway.com/deploy/medusajs-2-0-storefront?referralCode=-Yg50p).

**Already running this one?** Your store keeps working. When you are ready to move, deploy the 2.0 template alongside it and migrate your data, rather than upgrading in place.

Original v1 setup guide and video: [funkyton.com](https://funkyton.com/medusajs-free-fully-open-source-ecommerce-solution/)

## Common Use Cases

- Keeping an existing Medusa 1.x store running
- Referencing the v1 setup while planning a migration to Medusa 2.0
- Studying a complete v1 backend, admin and storefront wiring

For any new store, use the [Medusa 2.0 template](https://railway.com/deploy/medusajs-2-0-storefront?referralCode=-Yg50p).

## Dependencies for Medusa 1.x E-commerce Hosting

- GitHub account and Railway account
- Railway Hobby plan for ongoing use

### Deployment Dependencies

- [Medusa 2.0 template](https://railway.com/deploy/medusajs-2-0-storefront?referralCode=-Yg50p), the maintained replacement for this one
- [Medusa v1 documentation](https://docs.medusajs.com/v1), for anything about Medusa itself
- [Template repository and issues](https://github.com/rpuls/medusajs-for-railway-boilerplate), for anything about this template or its Railway setup

Questions about this template belong in the repository issues above, not in Medusa's own support channels.

## Why Deploy Medusa 1.x E-commerce on Railway?

Railway is a single platform for your whole infrastructure stack. It hosts your services so you do not have to deal with configuration, and lets you scale them vertically and horizontally.

For a new store, deploy the maintained [Medusa 2.0 template](https://railway.com/deploy/medusajs-2-0-storefront?referralCode=-Yg50p), not this one.


## 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/QvfPwp
