Skip to content

Commit 730f243

Browse files
committed
Fix for hosts not already named 'mongo'
1 parent c21089f commit 730f243

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/services/mongoose.service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const options = {
1515
};
1616
const connectWithRetry = () => {
1717
console.log('MongoDB connection with retry')
18-
mongoose.connect("mongodb://mongo:27017/rest-tutorial", options).then(()=>{
18+
mongoose.connect("mongodb://localhost:27017/rest-tutorial", options).then(()=>{
1919
console.log('MongoDB is connected')
2020
}).catch(err=>{
2121
console.log('MongoDB connection unsuccessful, retry after 5 seconds. ', ++count);

0 commit comments

Comments
 (0)