All Templates / Storage
MongoDB
MongoDB database service
MongoDB
mongo:7
Just deployed
/data/db
Mongo database deployed with the official Docker image.
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
Reference the MONGO_URL
variable to connect to MongoDB (e.g. ${{MongoDB.MONGO_URL}}
) from another service in your project.
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:7Details
Railway Templates
Created on Sep 9, 2023
8444 total projects
5614 active projects
96% success on recent deploys
Storage
More templates in this category