mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 08:50:15 +01:00
* 📑 update mkdocs * rename docker override file and add to gitignore * update .env.example - GOOGLE_MODELS * update index.md * doc refactor: split installation and configuration in two sub-folders * doc update: installation guides * doc update: configuration guides * doc: new docker override guide * doc: new beginner's guide for contributions - Thanks @Berry-13 * doc: update documentation_guidelines.md * doc: update testing.md * doc: update deployment guides * doc: update /dev readme * doc: update general_info * doc: add 0 value to doc weight * doc: add index.md to every doc folders * doc: add weight to index.md and move openrouter from free_ai_apis.md to ai_setup.md * doc: update toc so they display properly on the right had side in mkdocs * doc: update pandoranext.md * doc: index logging_system.md * doc: update readme.md * doc: update litellm.md * doc: update ./dev/readme.md * doc:🔖 new presets.md * doc: minor corrections * doc update: user_auth_system.md and presets.md, doc feat: add mermaid support to mkdocs * doc update: add screenshots to presets.md * doc update: add screenshots to - OpenID with AWS Cognito * doc update: BingAI cookie instruction * doc update: discord auth * doc update: facebook auth * doc: corrections to user_auth_system.md * doc update: github auth * doc update: google auth * doc update: auth clean up * doc organization: installation * doc organization: configuration * doc organization: features+plugins & update:plugins screenshots * doc organization: deploymend + general_info & update: tech_stack.md * doc organization: contributions * doc: minor fixes * doc: minor fixes
96 lines
3.8 KiB
Markdown
96 lines
3.8 KiB
Markdown
---
|
|
title: 🍃 Online MongoDB
|
|
weight: -4
|
|
---
|
|
|
|
# Set Up an Online MongoDB Database
|
|
|
|
## Create an account
|
|
- Open a new tab and go to [https://account.mongodb.com/account/register](https://account.mongodb.com/account/register) to create an account.
|
|
|
|
## Create a project
|
|
- Once you have set up your account, create a new project and name it (the name can be anything):
|
|
|
|

|
|
|
|

|
|
|
|
## Build a database
|
|
- Now select `Build a Database`:
|
|
|
|

|
|
|
|
## Choose your cloud environment
|
|
- Select the free tier:
|
|
|
|

|
|
|
|
## Name your cluster
|
|
- Name your cluster (leave everything else default) and click create:
|
|
|
|

|
|
|
|
## Database credentials
|
|
- Enter a user name and a secure password:
|
|
|
|

|
|
|
|
## Select environment
|
|
- Select `Cloud Environement`:
|
|
|
|

|
|
|
|
## Complete database configuration
|
|
- Click `Finish and Close`:
|
|
|
|

|
|
|
|
## Go to your database
|
|
- Click `Go to Databases`:
|
|
|
|

|
|
|
|
## Network access
|
|
- Click on `Network Access` in the side menu:
|
|
|
|

|
|
|
|
## Add IP adress
|
|
- Add a IP Adress:
|
|
|
|

|
|
|
|
## Allow access
|
|
- Select `Allow access from anywhere` and `Confirm`:
|
|
|
|

|
|
|
|
## Get your connection string
|
|
|
|
- Select `Database` in the side menu
|
|
|
|

|
|
|
|
- Select `Connect`:
|
|
|
|

|
|
|
|
|
|
- Select the first option (`Drivers`)
|
|
|
|

|
|
|
|
|
|
- Copy the `connection string`:
|
|
|
|

|
|
|
|
- The URI format is `mongodb+srv://<username>:<password>@<host>/<database>?<options>`. Make sure to replace `<password>` with the database password you created in the "[database credentials](#database-credentials)" section above. Do not forget to remove the `<` `>` around the password. Also remove `&w=majority` at the end of the connection string. `retryWrites=true` is the only option you need to keep. You should also add `LibreChat` or your own `APP_TITLE` as the database name in the URI.
|
|
- example:
|
|
```
|
|
mongodb+srv://fuegovic:1Gr8Banana@render-librechat.fgycwpi.mongo.net/LibreChat?retryWrites=true
|
|
```
|
|
|
|
---
|
|
|
|
>⚠️ Note: If you're having trouble, before creating a new issue, please search for similar ones on our [#issues thread on our discord](https://discord.gg/weqZFtD9C4) or our [troubleshooting discussion](https://github.com/danny-avila/LibreChat/discussions/categories/troubleshooting) on our Discussions page. If you don't find a relevant issue, feel free to create a new one and provide as much detail as possible.
|