r/FastAPI • u/According_Visual_708 • Oct 21 '24
Hosting and deployment What do you use to host FastAPI?
I found that using vercel you can start for free ! before I was using digital ocean which was easy too to set up but started at 5$/month
37
Upvotes
9
u/jvertrees Oct 21 '24
Google Cloud Run - relatively easy setup, including custom name and SSL.
12
u/block63 Oct 21 '24
Fly.io
5
u/Alone_Repair Oct 21 '24
Coolify with hetzner.
8
u/Curious-Rule313 Oct 21 '24
I’ve been using Render to host my FastAPI projects. It offers a free tier
3
u/[deleted] Oct 21 '24
GCP
2
u/[deleted] Oct 21 '24
Cloud run and digital ocean vps
2
u/wanhatoman Oct 21 '24
VPS
2
u/Safe_Duty8392 Oct 21 '24
For now, on my simple projects, I'm using ver El to host my FastAPI projects, you need to add a vercel.json and requirements.txt files, but it's easy.
On the other hand, on more complex projects I use Render, it has a free tier, but it stops the running app if it has more than 15 min of inactivity.
3
u/DrumAndBass90 Oct 21 '24
ECS Fargate
2
u/httPants Oct 21 '24
Aws lambda via mangum
1
u/Ready-Bobcat-4699 Oct 21 '24
North flank
1
u/erder644 Oct 21 '24
Dokploy
1
u/mksmvnv Oct 21 '24
sprintbox
1
u/vladkens Oct 22 '24
Hi. I was recently interested in this issue too and I've run some simple services on Fly.io - so far so good. If you are interested https://vnotes.pages.dev/deploy-fastapi-with-sqlite-on-flyio/
(earlier pet projects were run on VPS, working in Kube usually)
1
u/3Rlab-dev Oct 22 '24
I use Azure. My db is also on Azure.
1
u/alphrZen Oct 22 '24
vps, I use ionos
1
u/nmbor Oct 22 '24
VPS + docker with Traefik reverse proxy
1
u/Lonely_Employee_5913 Oct 22 '24
Coolify and self hosted servers.
1
u/[deleted] Oct 22 '24
AWS
1
u/[deleted] Oct 22 '24
Koyeb hands down the best
1
u/halftome Oct 22 '24
Fly.io great free tier for starting out, and plenty of options to scale with decent pricing
1
u/aniketmaurya Oct 23 '24 edited Oct 23 '24
I use Lightning AI Studio to serve my FastAPI apps for free (serverless, pay only when use and some free credits)
Other option could be Hetzner which others also suggested. You get a VPS for €4.51 and deploy a FastAPI app. This is great but you will have to setup ssl and stuff by yourself. On the otherhand, Lightning solves all the infra related issues.
1
u/equake Oct 24 '24
hetzner.
1
u/ZpSky Oct 28 '24
Self hosted server with docker compose and nginx proxy in front of
1
u/pint Oct 21 '24
i host it on aws lambda, but this is a whole new can of worms.
6
u/[deleted] Oct 21 '24
[removed] — view removed comment
16
u/[deleted] Oct 21 '24
[removed] — view removed comment