MongoDB

The Railway MongoDB database service allows you to provision and connect to a MongoDB database with zero configuration.

Connect

When you run railway run in a project with the MongoDB database service installed, we inject several environment variables.

  • MONGOHOST
  • MONGOPORT
  • MONGOUSER
  • MONGOPASSWORD
  • MONGO_URL

Image

The MongoDB database service uses the mongo:4.4 docker image.


Edit this file on GitHub