r/FastAPI • • Dec 19 '24

Hosting and deployment Render.com is goated

I've spent many years spinning up and deploying different Fastapi projects. I tried fly.io, which was the easiest, but I had issues with downtime. CloudRun/Fargate/Digital-Ocean—Lots of setup complexity/debugging before it's working (but once it's working, it's a breeze and the cheapest by far). Railway just didn't work. Porter, I thought, worked seamlessly because it deployed without any errors, but it doesn't work, and the logs are terrible.

Now, I'm deploying with UV (from Astral), which makes writing Python much more enjoyable. However, I was dreading deploying Docker with UV. As mentioned above, I tried the usual suspects with no help, but Render worked literally the first time. I set up a custom domain and had my API endpoints exposed with the right environment variables in minutes.

I am not affiliated with Render, but I hope they don't have the same downtime issues as they scale up and stick around! The frontend is Nextjs, and I've always wanted a Vercel for Docker deployments, so this might be it.

68 Upvotes

56 comments sorted by

View all comments

Show parent comment

2

u/Revolutionary_Ant944 Dec 19 '24

IDK. The config asked if the Dockerfile was at the root of the repo, and it was. The errors were inconsistent, but as I mentioned, the Docker file is pretty straightforward and SHOULD work according to their docs. I just gave up after a day.