Dokploy mongodb database not connecting to Atlas Compass

I am trying to use mongodb atlas compass app to connect to dokploy mongodb via the external link but it is not working. Is this possible?
3 Replies
ReadyToWin
ReadyToWinOP9mo ago
Even when I try to connect to mongodb using the external connection url in the dokploy terminal, I get this error
MongoServerSelectionError: connection timed out
MongoServerSelectionError: connection timed out
jdmry
jdmry9mo ago
it works no problem for me by just copy pasting the provided url from dokply to compass make sure you have authentication set as username/password and authmechanism to default connection string I use for example is: mongodb://user:password@IP:PORT/
ReadyToWin
ReadyToWinOP9mo ago
Not sure why it still doesn't work. It might be a whitelist issue. I guess I have to use Atlas mongodb I have solved it. I am using AWS EC2 and forgot to set the inbound rules for the external port

Did you find this page helpful?