This repo contains the script to inititiate a Mongo Replica set deployed in Railway from a template.
To deploy your own Mongo replica set in Railway, just click the button below!
For even more information, check out the tutorial in Railway: Deploy and Monitor a MongoDB Replica Set
The init service is used to execute the required command against MongoDB to initiate the replica set. Upon completion, it deletes itself via the Railway public API.
Included in this repo are some example apps to demonstrate how to connect to the replica set from a client.
Currently, the replica set has auth disabled by default.
We intend to update the template and script to deploy a replica set with a keyfile for auth in the near future