What’s the best way to host my Next.js project if I need to have a static IP address?
Hey everyone,
I've built my startup project using the T3 stack and initially hosted it on Vercel, which has been working perfectly so far. However, as the project is gaining more users, I need to connect it to my Supabase database using a secure network. Specifically, I need to restrict IP access to the database, which requires hosting my project in a way that provides a static IP.
Can anyone guide me on a good way to achieve this? I feel that using an EC2 instance on AWS might be overkill, and I haven't found a better alternative yet. I've looked into Netlify, Railway, and a few others but haven't decided on the best option.
Any help would be greatly appreciated!
5 Replies
Get a VPS and install coolify or dokploy on it, it will be cheaper
I do not mind the pricing, as long as I do not need to learn too much to get i up and running 😅
Also as I am working with regulated companies I need to insure a high level of security. I am not experienced enough to handle all that.
You will need to know docker for any solution here (Next.js has a docker example, you can just copy their Dockerfile). As for security, as long as you use a good password and a stable distro like debian, it should be fine. Also, you can install coolify with just one command, and then you can manage everything with their web ui.
Ok thank you very much @Matvey, I know Docker a little, will give your solution a try 👐
I'd also check out https://www.flightcontrol.dev/, it's basically an abstraction on top of AWS that provides an experince like Railway