Document database. Single instance with authentication and persistence on a volume. Good for development, staging, and small production workloads. No replica set, so no failover and no transactions across documents.
Install the CLI. See the install docs.
Log in:
runway login
Add an SSH key. See key setup, or use the shortcut:
runway local key setup
We are providing a template for one-click deployments of MongoDB to Runway. You can either deploy MongoDB from your browser, or on the command line via:
runway app create --app='my-mongodb-database' --plan='scale-m-launch'
runway app deploy template --app='my-mongodb-database' --template='mongodb'
After deployment,
runway app show --app='my-mongodb-database'
will display the connection details, so you can connect to your new MongoDB from other apps.
Our MongoDB template supports the following options:
database_name - Application database. Created on first write, not at startup. (default: app)image_tag - MongoDB version. 8.0 and 8.3 are supported until Oct 2029, 7.0 until
Aug 2027. Major upgrades must go one release at a time and need
featureCompatibilityVersion set first — do not jump this after deploy. (8.0, 8.3, 7.0)username - Root user, created in the admin database on first start. Has full
cluster access. (default: app)You can set them on the command line during deployment:
runway app deploy template --app='my-mongodb-database' --template='mongodb' \
database_name=app \
image_tag=8.0 \
username=app
MongoDB is distributed under the SSPL-1.0 license - source code available at https://github.com/mongodb/mongo.