r/SpringBoot • u/mp-giuseppe2 • Feb 24 '26
Question Which is the best hosting service for a spring application?
I was using ngrok, but since I cant leave my pc forever powered on I was searching for a better option.
Vercel is not compatible with spring. Railway.app has a free trial but not a free plan.
29
Upvotes
2
u/bikeram Feb 24 '26
Why does everyone stay away from the big three? What do these smaller companies offer? Genuinely curious.
9
u/[deleted] Feb 24 '26
I've hosted my entire Springboot backend on AWS EC2. My application is modular monolith and I've created a pipeline via Git CI/CD and enable PM2 service on EC2, so whenever I push code, it is deployed immediately and server restarts automatically within seconds. I initially got $100 for account and later did some tasks provided by AWS and they reward you $20 each task and they are 5 in total. So now I have $200 worth of credits and my application runs 24/7.
9
u/HistorianIcy8514 Feb 24 '26
Dockerize your app and deploy to Render.
8
u/tobidope Feb 24 '26
Any vps with memory and CPU. But you need to understand Linux a little. Then you deploy a container or the jar. A little systemd service around it and you are done.
7
u/locus01 Feb 24 '26
I am searching for the same, but also want to know how to implement advanced concepts like cron jobs, ci/cd all this for free or with minimal price.
7
u/Mikey-3198 Feb 24 '26
Hetzner / any other vps provider
5
u/tedyoung Feb 24 '26
Railway might not be free, but it’s very inexpensive if your application isn’t heavily used. I don’t pay more than $2 a month for a couple of low usage Spring Boot apps, and that’s with a Postgres instance, too.
4
u/Nekoyukihime Feb 24 '26
I am using Fly.io
4
u/puspendert Feb 26 '26
Buy a Hostinger VPS based on your need. Install Linux and Docker. Download whatever tool you want using docker and map the server IP with your domain. Cheapest IMO.
2
u/Voldsman Feb 24 '26
Digital Ocean/ Hetzner /Contabo (probably the cheepest option)
2
u/flavius-as Feb 24 '26
Hetzner, obviously.
1
u/Grabdoc2020 Feb 24 '26
digitalocean app platform
1
u/sgeektn Feb 24 '26
Scalingo
1
u/Neither_Tension_676 Feb 24 '26
Try render with docker
1
u/Hirschdigga Feb 24 '26
Oracle Cloud has an always-free-tier
1
u/hillywoodsfinest87 Feb 24 '26
I have used fly.io dunno if they still have a free tier
1
u/dshmitch Feb 24 '26
Am searching for the same for long time now. Using AWS for now, it is good, but I expected something with better support for Java Spring apps
1
u/IndependenceSea7651 Feb 25 '26
Hello. I'm using Google Cloud with Cloud Run. It has a free tier that's ok if you have a small/medium project.
1
u/Next_Society_366 Feb 25 '26
I'm using contabo.
1
u/Substantial_Ad252 Apr 13 '26
hetzner smallest vm is <5€.
install docker/podman and nginx + let's encrypt :)
1
u/gozluklumarti Feb 24 '26
I'm using Contabo. No other vps provider can compete with them when it comes to cost/performance.
0
u/kakovoulos Feb 24 '26
heroku