removed docker mongodb integration

This commit is contained in:
2023-01-13 19:59:15 -03:00
parent 63ec99e6a5
commit a62cee3ccd
2 changed files with 2 additions and 8 deletions

View File

@@ -3,7 +3,7 @@ const mongoose = require('mongoose')
export default function databaseConnection() {
mongoose
.connect(
`mongodb://root:${process.env.MONGO_INITDB_ROOT_PASSWORD}@${process.env.MONGODB_LINK}`,
`mongodb+srv://${process.env.MONGODB_USERNAME}:${process.env.MONGODB_PASSWORD}@${process.env.MONGODB_LINK}`,
{
serverSelectionTimeoutMS: 5000,
}