---
title: "Deploy MongoDB 9.0"
description: "Single-node MongoDB 9.0 database, ready to deploy"
category: "Storage"
url: https://railway.com/deploy/mongodb-90
---

# Deploy MongoDB 9.0

Single-node MongoDB 9.0 database, ready to deploy

**[Deploy MongoDB 9.0 on Railway](https://railway.com/template/mongodb-90)**

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

- **Creator:** Adeel Ahmed's Projects
- **Category:** Storage

## Template content

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

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

## Documentation

# Deploy and Host MongoDB 9.0 on Railway

MongoDB 9.0 is a document database that stores data as flexible, JSON-like documents, making it a practical choice for applications that need to evolve their data model quickly.

## About Hosting MongoDB 9.0

This template deploys a single-node MongoDB 9.0 database on Railway using the official mongo:9.0.4 image, with persistent storage mounted at /data/db and private networking only.

## Common Use Cases

- Backing web and mobile applications with a document database
- Storing user accounts, content, and application state
- Prototyping and learning MongoDB without managing servers

## Dependencies for MongoDB 9.0 Hosting

This template has no external service dependencies. It deploys one MongoDB service, and Railway generates the root username and password at deploy time.

## Why Deploy MongoDB 9.0 on Railway?

Railway provides persistent storage, private networking, and a one-click deploy from this template, so you can start with a running MongoDB 9.0 database in minutes.

## Frequently Asked Questions

### How do I connect to MongoDB?

Use the MONGO_URL variable, which is generated from the deploy-time root credentials and the service's private domain.

### Is the data persistent?

Yes. Data is stored in a Railway volume mounted at /data/db.

## Similar templates

- [RustFS | (Just Updated) S3 Object Store, Public URL and Keys Set](https://railway.com/deploy/rustfs-or-just-updated-s3-object-store-p) — S3-compatible object store, keys and public URL preset, volume kept
- [TimescaleDB](https://railway.com/deploy/timescaledb-railway-template) — A PostgreSQL-based time-series database for analytics on Railway.
- [Garage S3 Storage](https://railway.com/deploy/garage-s3-storage) — Ultra-light S3 server: fast, open-source, plug-and-play.

Open this page in a browser: https://railway.com/deploy/mongodb-90
