---
title: "Deploy Meteor.js on Railway"
description: "Deploy a Meteor.js 3.5 app on Railway with a standalone MongoDB."
category: "Starters"
url: https://railway.com/deploy/meteorjs-on-railway
---

# Deploy Meteor.js on Railway

Deploy a Meteor.js 3.5 app on Railway with a standalone MongoDB.

**[Deploy Meteor.js on Railway on Railway](https://railway.com/template/meteorjs-on-railway)**

- **Creator:** Fred Maia
- **Category:** Starters

## Template content

### MongoDB https://devicons.railway.app/i/mongodb.svg

- **Image:** mongo:8.0
- **Start command:** `docker-entrypoint.sh mongod --ipv6 --bind_ip ::,0.0.0.0 --setParameter diagnosticDataCollectionEnabled=false`

### meteor-on-railway

- **Source:** fredmaiaarantes/meteor-on-railway
- **Health check:** /
- **Public domain:** Yes

## Documentation

# Deploy and Host Meteor.js on Railway

Meteor.js is a full-stack JavaScript platform for building real-time web and mobile apps from a single codebase. This template packages a Meteor 3.5 app into a production-ready multi-stage Dockerfile (via meteor-base) alongside a standalone MongoDB, so it builds and serves traffic on Railway with no manual server setup.

## About Hosting Meteor.js on Railway

Hosting Meteor.js means compiling the app into a production bundle and running it with Node, backed by MongoDB. This template handles that with a two-stage Dockerfile: a build stage based on the `geoffreybooth/meteor-base` image compiles the bundle, and a slim Node alpine stage runs it. A standalone MongoDB service runs alongside the app, and the two share Railway's private network, with `MONGO_URL` and `ROOT_URL` wired as variable references so nothing is hardcoded. A healthcheck on `/` gives you zero-downtime deploys out of the box, and the whole stack (app, database, networking, and environment) comes up ready to use.

## Common Use Cases

- Real-time apps that need reactive data, like chat, dashboards, or collaborative tools
- Prototyping full-stack JS apps without wiring up separate frontend/backend hosting
- Small-to-mid production Meteor apps that don't yet need a MongoDB replica set

## Dependencies for Meteor.js on Railway Hosting

- A Meteor 3.5 app (with `.meteor/release` pinned to `METEOR@3.5`)
- MongoDB (provisioned automatically by this template)

### Deployment Dependencies

- [geoffreybooth/meteor-base](https://github.com/disney/meteor-base): the Docker image and Dockerfile this template's build is based on
- [Meteor Guide: Deployment](https://guide.meteor.com/deployment): environment variables and production concepts
- [Railway Docs: Dockerfiles](https://docs.railway.com/guides/dockerfiles): how Railway builds from a Dockerfile

### Implementation Details

The app service ships with two variables wired as Railway references, so they follow each deploy automatically:

```
MONGO_URL = ${{ MongoDB.MONGO_URL }}
ROOT_URL  = https://${{ RAILWAY_PUBLIC_DOMAIN }}
```

## Why Deploy Meteor.js 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 Meteor.js 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

- [open-excalidraw](https://railway.com/deploy/open-excalidraw) — Self-hostable collaborative drawing built on Excalidraw
- [caring-vibrancy](https://railway.com/deploy/caring-vibrancy) — Deploy and Host caring-vibrancy with Railway
- [Appsmith](https://railway.com/deploy/appsmith-1) — Low-code platform for internal tools, dashboards, and admin panels.

Open this page in a browser: https://railway.com/deploy/meteorjs-on-railway
