Deploying a Node.js Application on AWS Using Coolify

Deploying a Node.js Application on AWS Using Coolify

January 13, 2025

"Deploy your Node.js application to AWS Lightsail with Coolify, complete with custom domain integration."

Software Dev

Latest in tech

Introduction

Platforms like Vercel are incredibly easy to deploy with, but they can become expensive in the long run. On the other hand, platforms like AWS are often more cost-effective, but deploying on them requires a certain level of expertise due to their complexity. This is where Coolify steps in to simplify things. With Coolify, you can run your own Vercel-like platform on AWS with just a single command. It’s as straightforward to set up as popular serverless services like Vercel and offers powerful features such as metrics, automated deployments, preview link generation, and more.

Deploy your Code

We're using Lightsail because it is easy and allows you connect to your instance directly from your browser.
If your domain is test.example.com, you should use *.test when adding wildcard to your domain config.
blog content
Select Nixpack as your build pack; it automatically uses your lock file to set the install, build, and start commands. You can also change the pre-generated domain, but avoid clicking the Generate Domain button, as it will create a dummy domain unrelated to your actual domain.

Conclusion

Coolify makes deploying your apps super easy, giving you the features of Vercel without the crazy costs. Setting up your Lightsail instance, configuring your domain, and adding your projects are all straightforward. You can also set up databases, Redis, and more directly on Coolify, which is a big plus.

That said, I ran into a snag when my 2GB system wasn’t enough to build my Node app. The fix? A swapfile. If you hit the same issue, no worries—check out my article on generating a swapfile.

Before you wrap up, don’t forget to head to settings and enable 2FA for extra security. Good luck, and happy deploying!

See more

Kindly share this story:

Leave a Reply

Your email address will not be published.

Required fields are marked*

Comment *

Name*

Email*