Return to the Render Dashboard and create environment variables for username and password in your Render service using the database username and password your created above. Pick the Mongo driver and version used in your Render service to create a connection string URI. Under “Connection Method”, select “Connect your Application”. Update cluster connections under “Network Access”. You will create environment variables for these values in your Render service connecting to Atlas. You could also use a Certificate.Ĭreate a user profile for the new database and make a note of your database username and password. This guide assumes you are using a username and password for authentication. Virginia (us-east-1)Ĭhoose an authentication method. Render Regionĭedicated tier: Ohio (us-east-2) Shared tier: N. You can also set the cluster tier, cluster name, and any additional settings at this point. Select AWS as the cloud provider and pick the AWS region closest to the region where your Render app is deployed. Select one of the following deployment options for your database: If you prefer to host your own MongoDB instance on Render, refer to Deploy MongoDB.įor advanced usage and troubleshooting, see MongoDB documentation Create and Configure a DatabaseĬomplete steps 1 through 6 in the MongoDB Atlas web interface. This is an alternative to hosting a containerized instance of MongoDB on Render. This guide walks through connecting your Render-hosted application to a database hosted on MongoDB Atlas.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |