self hosted mongodb

Hello, i'm trying to self host my db on the vps ubunto server.. may i ask is there is any way to do that in which me and the docker containers only can have access to that db? from the ip address maybe? also what's the pros and cons of self hosting my db? what should i take care of before doing that.
3 Replies
Yousef
YousefOP3mo ago
please ping when there is reply i don't even know if this is the correct channel for this kind of question
Chaika
Chaika3mo ago
not really the right discord for it, there's way to dockerize mongodb I'm sure and use a docker network and not expose the db otherwise, lots of docker content/tutorials out there. The one thing you want to take care of is backups, regular & tested
Yousef
YousefOP3mo ago
Thanks But can i allow external ip address such as my computer ip address?
Want results from more Discord servers?
Add your server