All Templates / Storage

MongoDB

MongoDB

MongoDB database service

Deploy MongoDB

MongoDB

mongo:7

Just deployed

/data/db

Overview

Mongo database deployed with the official Docker image.

Start Command

The Mongo container deployed from this template is started with the following command, to enable communication over IPv6 (required for Private Networking): docker-entrypoint.sh mongod --ipv6 --bind_ip ::,0.0.0.0

How to use

Reference the MONGO_URL variable to connect to MongoDB (e.g. ${{MongoDB.MONGO_URL}}) from another service in your project.

Connecting externally

Connect to the database from outside of Railway using the TCP Proxy.

In a terminal, for example:

mongo mongodb://mongo:PASSWORD@TCP_PROXY_DOMAIN:TCP_PROXY_PORT

Template Content

MongoDB

mongo:7
Deploy Now

Details

Railway Templates

Created on Sep 9, 2023

8444 total projects

5614 active projects

96% success on recent deploys

Storage



More templates in this category

View Template
ReadySet

ReadySet

A lightweight caching engine for Postgres


Milo

View Template
EdgeDB

EdgeDB

EdgeDB template based on their Docker deployment guide


Ajit Krishna

View Template
Apache Kvrocks

Apache Kvrocks

A drop-in replacement for Redis to store data on a volume.


Bram