I'm trying to deploy a MERN app, but one thing is unclear to me: Is there a way to set up mongo db without extra payment, for example on droplet that contains the server, and how? I would appreciate it if you could help me understand this a little bit better or point me in the right direction.
CodePudding user response:
Is there a way to set up mongo db
yes - you either self host or pay for a manged service. In this case you do not want to pay so it is on you to self host the DB server yourself and manage everything such as backup and replication.
To do that you need to
- launch a server/VM
- Run Mongo on it such as via docker container or the binary itself
- Configure firewall rules
- Configure backups
- Optionally configure High availability if required