Attempt #1 to auto compile MongoDB into the build to exclude it from the compose.

This commit is contained in:
Karmaa
2025-03-16 13:07:18 -05:00
parent b585c95b25
commit aa95fee450
3 changed files with 26 additions and 11 deletions

View File

@@ -69,7 +69,7 @@ const decryptData = (encryptedData, userId, sessionToken) => {
}
};
mongoose.connect(process.env.MONGO_URL || 'mongodb://mongodb:27017/termix')
mongoose.connect(process.env.MONGO_URL || 'mongodb://localhost:27017/termix')
.then(() => logger.info('Connected to MongoDB'))
.catch(err => logger.error('MongoDB connection error:', err));