Back to articles
DevOps & Systems

Build a Self-Hosted Mini Vercel on ARM VPS with Coolify and Nixpacks

This guide shows how to build a self-hosted mini Vercel platform on ARM-based VPS using Coolify and Nixpacks to minimize costs and automate web application deployment. By leveraging...

DPTCloud Engineering4 min read
Build a Self-Hosted Mini Vercel on ARM VPS with Coolify and Nixpacks

Image credit: JerzyGórecki · Pixabay Content License

This guide shows how to build a self-hosted mini Vercel platform on ARM-based VPS using Coolify and Nixpacks to minimize costs and automate web application deployment. By leveraging NVMe Cloud VPS for Docker, Nginx & Databases, you can create a powerful, low-cost PaaS environment that automates CI/CD, SSL setup, and containerization without manual Dockerfile configuration.

Introduction to Self-Hosted Mini Vercel on ARM VPS

As web application hosting costs rise, self-hosting a Vercel-like platform on ARM-based VPS offers a cost-effective alternative for developers and small teams. With Coolify and Nixpacks, you can automate the deployment of web apps—similar to Vercel—without relying on expensive cloud platforms. This setup is ideal for startups, hobbyists, or teams seeking full control over their infrastructure while minimizing operational overhead.

Prerequisites and Environment Setup

To get started, ensure your VPS meets the following requirements:

  • ARM64-based VPS running Linux (Ubuntu 22.04 or Debian 11).
  • Docker and Docker Compose installed.
  • SSH access to the server.
  • A domain name (optional but required for HTTPS via Let's Encrypt).

Install Docker and Docker Compose with the following commands:

sudo apt update
sudo apt install docker.io docker-compose -y

Deploying the Platform with Coolify

Coolify is an open-source PaaS that enables automated app deployment via Git push, similar to Heroku or Vercel. To install it:

  1. Run the following command to start Coolify in a Docker container:
docker run -d --name coolify -p 3000:3000 -p 80:80 -p 443:443 --restart unless-stopped -e DATABASE_URL=sqlite:///coolify.db -e REDIS_URL=redis://redis:6379 -e NODE_ENV=production coolify/coolify
  1. Access the Coolify dashboard at http://your-vps-ip:3000.
  2. Log in with the default credentials and configure your domain and SSL settings.

Optimizing Applications with Nixpacks

Nixpacks automatically detects your app’s framework and generates a Dockerfile without manual configuration. To use it:

  1. Initialize a new web app (e.g., Next.js, Node.js, React).
  2. Ensure package.json is present and includes all dependencies.
  3. Push your code to a GitHub repository.
  4. In Coolify, create a new app and select GitHub as the source.
  5. Choose Nixpacks as the builder instead of a custom Dockerfile.

Nixpacks will then analyze your project, install the correct runtime, and build a container image—enabling rapid deployment with minimal setup.

Deployment and Verification

After configuration, you can:

  • Monitor deployment status in the Coolify dashboard.
  • Access your app via the assigned URL.
  • Set up automatic CI/CD using GitHub webhooks.
  • Enable HTTPS automatically with Let's Encrypt if a domain is configured.

Cost and Performance Optimization

ARM-based VPS instances are often cheaper than x86, especially for lightweight applications. To further reduce costs:

  • Choose NVMe storage for faster I/O performance.
  • Set resource limits (CPU, RAM) per app to prevent overuse.
  • Host multiple apps on a single VPS to share infrastructure costs.

This approach creates a self-hosted, cost-efficient alternative to commercial platforms, suitable for individuals, startups, or small teams.

References and Support

For more information on ARM VPS hosting, see NVMe Cloud VPS for Docker, Nginx & Databases. For additional use cases, explore related guides such as How to Self-Host Headless Commerce with MedusaJS on VPS with NextJS Frontend or Build a Personal PaaS Platform with Dokku Using Git Push Commands Similar to Heroku.

DPTCloud Tier III Infrastructure

Recommended NVMe Cloud VPS Plans to Deploy This Setup

Enterprise RAID 10 NVMe SSDs, CMC & FPT District 9 uplinks with Anycast Anti-DDoS and 99.99% SLA.

View 22 VPS Plans
ECO · vn-02

VPS-2E

94.600 ₫ / mo

10% VAT included

  • CPU: 2 vCPU
  • RAM: 2 GB
  • SSD: 30 GB NVMe
ECO · vn-02Recommended

VPS-3E

170.500 ₫ / mo

10% VAT included

  • CPU: 2 vCPU
  • RAM: 4 GB
  • SSD: 50 GB NVMe
BASIC · vn-01Recommended

VPS-05

457.600 ₫ / mo

10% VAT included

  • CPU: 4 vCPU
  • RAM: 8 GB
  • SSD: 50 GB NVMe

Related Articles

View all
ZaloZalo SupportDiscord0384 753 478