ericvlog / note

6 stars 1 forks source link

Setting up a Free MongoDB Atlas Cluster #76

Open ericvlog opened 1 month ago

ericvlog commented 1 month ago

Setting up a Free MongoDB Atlas Cluster

This guide will walk you through setting up a free MongoDB Atlas cluster which can be used as a database for your applications.

Step 1: Sign Up or Log In to MongoDB Atlas

Go to the MongoDB Atlas website and sign up or log in to your account.

Step 2: Create a New Project

Step 3: Create a Free Cluster

Step 4: Configure Database Access

Step 5: Configure Network Access

Step 6: Connect to Your Database

Replace the MONGO_URI in the .env file with the connection string you copied from the previous step.

Make sure to add the Database name in the connection string. Example Database name is mediafusion.


MONGO_URI=mongodb+srv://<username>:<password>@<cluster-url>/<database-name>?retryWrites=true&w=majority

Remove the mongodb container and depends_on from the docker-compose.yml file.