Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
I’m in the same boat
Digital ocean, Linode & Vultr don’t have managed MongoDB instances so it will be something you will need to configure, secure and backup manually
What’s your backend written in? -
It can be done with docker as far as I’m aware, and you could run it on a compute instance. Unfortunately as I haven’t used aws, I wouldn’t be sure
-
populah274y@err-occured and mongodb can run inside docker right? I am only worried about the security of the backend.
-
@populah yeah, there are official images available and instructions on how to secure it. So as long you block the mongo exposed ports to the world and you set a really secure password, you should be fine
-
populah274y@err-occured what about the api keys and ports to springboot instance running..?
What are you working on? -
You can host the mongo on aws or azure and buy a cheap vps for the actual backend code
-
populah274y@yellow-dog how about using mongo atlas?
And why can't i use mongo in docker along with spring boot? -
A bigger vps usually costs more than what i said.
Idk what mongo atlas is, in case its a cloud mongo provider, then substitute it for the other two cloud mongo providers i said. -
populah274y@yellow-dog the 5$ initial setup cant cut it?
Atlas is by mongo.. Instance hosted on aws, gc or azure. Check it out if you wish. -
You can totally use DO with docker images and even a mongodb container, just be sure to persist logs and data to a disk.
Not sure why'd need a dedicated host for that, nothing wrong with a vps.
You could also run your application (container) inside azure and get a dedicated managed db from there, what are your requirements? -
populah274y@alexbrooklyn i dont have much requirements.. Just a spring boot embedded tomcat + mongodb. What else will i need. Do I need nginx?
-
@populah you would forward ports through docket, as for api keys and spring boot, I’m not to sure.
My app is currently private atm, but it fakes within Organization/ Productivity category’s -
@populah I’ve heard of atlas, but not mlab, however I would prefer to try and keep everting within the same infrastructure to avoid network delay
-
@populah sure put an nginx in front, it can add some common headers and cache some pages
-
Maybe this is for you?
Instant GraphQL + MongoDB Backend With Mongoke
https://hackernoon.com/graphql-mong...
Hi guys so I have a fairly simple spring boot backend with mongodb. I am starting out with this setup for my app. I dint choose something like firebase because it will lock me into their ecosystem.
My question is can initially just run my backend with Digital ocean droplet or I need dedicated hosting?
Can it be done with docker. Is it the only way?
If not digital ocean then which one? Vultr, hetzner, linode, aws lightsail?
What are the things needed. Am I missing something?
question