Skip to main content
Photo of DeepakNess DeepakNess

Hosting a Next.js app on a Hetzner VPS via Coolify

Unproofread notes

A quick guide to host a Next.js app on a Hetzner VPS via Coolify:

  1. Set up an Ubuntu Hetzner VPS and grab the public IP
  2. Connect to the server from your terminal via SSH
    ssh root@[IP_ADDRESS]
  3. Update and upgrade the Ubuntu server
    sudo apt update && sudo apt upgrade
  4. Install Coolify on the server by running the following command
    curl -fsSL https://cdn.coollabs.io/coolify/install.sh | bash
  5. After successful installation, visit http://[ID_ADDRESS]:8000 and register a new account
  6. Connect your private or public GitHub repo and publish your Next.js app

I have also created this step-by-step YouTube video explaining everything from creating the VPS to installing Coolify and hosting the website.

Comment via email