SourceLair’s MongoDB capabilities

SourceLair MongoDB is a fully functional MongoDB server. You can connect to it from your SourceLair project like you would with any other server of yours. The only difference is that it shares networking only with your project’s processes, making it visible to your web server and terminal, but invisible to everyone else.

Database information

Version: 3.2
Host: mongo

Accessing your database server

You can connect to your database from your SourceLair Terminal using:

mongo --host mongo

Accessing your database

SourceLair makes sure it exposes the URL for accessing your database in the MONGO_URL=mongodb://mongo:27017/sourcelair environment variable. If you’d like to change the default settings, like add a password or rename the database, you can always change your project’s environment using a .env file.

For any further information or inquiries feel free to contact support@sourcelair.com