Zero downtime deployments & high availability setup using Coolify + Hetzner • 2026 Guide
This tutorial walks you through setting up zero downtime deployments and a high availability setup using Coolify and a Hetzner Load balancer. You’ll learn how to scale your application across multiple servers, use a load balancer, and deploy new versions without taking your app offline. In this video you’ll learn how to: Set up multi-server deployments using Coolify Configure a Hetzner load balancer for traffic distribution and failover Use health checks and graceful shutdowns during deployments Set up automatic deployments with Docker and a container registry Put Cloudflare in front of the load balancer for DDoS protection 🌟 Video Sponsor! This video is made possible thanks to Hetzner, my go-to hosting provider. If you're looking for affordable and reliable cloud infrastructure, check them out here: https://airoflare.com/hetzner ❤️ Support the Creator! Creating these videos takes a significant amount of time and effort. If you found this helpful, consider supporting us: Share the video Leave a comment Or donate (optional): https://airoflare.com/support-us Your support is genuinely appreciated! ⏰ Timestamps 0:00 ➔ Intro 0:24 ➔ Why Single Servers Fail: The Scaling Problem 0:49 ➔ Scaling Step 1: Separate the Database 1:15 ➔ Scaling Step 2: Separate the Application 1:37 ➔ Scaling Step 3: Implement High Availability (HA) 2:13 ➔ How to Prevent Downtime: The Deployment Problem 3:05 ➔ The Zero Downtime Deployment Logic Explained 4:15 ➔ The SIGTERM / SIGKILL Grace Period 5:20 ➔ Essential Health Check & Shutdown Logic 6:02 ➔ 5 Rules for Zero Downtime with Coolify 7:35 ➔ Sponsor: Hetzner 8:34 ➔ Full-Stack App Setup (Next.js, Prisma, Bun) 10:01 ➔ Code Breakdown: Health Check Implementation 12:15 ➔ Infrastructure Pre-Setup 13:39 ➔ Hetzner: Create a Private Network 14:41 ➔ Hetzner: Provision a Load Balancer 16:05 ➔ Hetzner: SSL Certificates Configuration 17:15 ➔ Hetzner: Crucial Health Checks Setup 18:55 ➔ Hetzner: Setup DNS 19:48 ➔ Hetzner: Setup firewalls & SSH keys 22:56 ➔ Hetzner: Server Creation & Automated Docker Login 25:54 ➔ Coolify: Connecting All Servers 29:13 ➔ Coolify: Deploying the PostgreSQL Database 30:56 ➔ Coolify: Deploying the Next.js Application 37:18 ➔ Zero Downtime Deployment Live Demo 41:22 ➔ Adding Cloudflare for DDoS protection & Caching 43:28 ➔ Outro 🔗 Links used/mentioned in the video Github App tutorial ➔ • Setup GitHub App on Coolify • 2025 Cloudflare DDoS protection tutorial ➔ • Setup Cloudflare DDoS protection for Cooli... Nextjs App codebase ➔ https://github.com/Airoflare/Youtube-... Tester Site codebase ➔ https://github.com/Airoflare/Youtube-... Hetzner Cloud Config ➔ https://github.com/Airoflare/Youtube-... 💎 More from us Website ➔ https://airoflare.com Discord Community Server ➔ https://airoflare.com/discord Become a Supporter ➔ https://airoflare.com/donate Business inquiries (email) ➔ [email protected] ⚠️ Important Please do not re-upload or redistribute this video on any platform without permission. Sharing the link to this video is completely fine.

Coolify vs Dokploy: Why I decided to use one over the other

Setup Cloudflare DDoS protection for Coolify • 2025

Simple HTTPs for Docker! // Traefik Tutorial (updated)

Unbelievable Workers Compilation | Working with Talented Engineers #45 #adamrose #smartworkers

Why I Stopped Using Supabase for My SaaS

You've been lied to about self hosting...

System Design Explained: APIs, Databases, Caching, CDNs, Load Balancing & Production Infra

Wait... Nginx can do WHAT?!

Caught in 4K! Funniest Security Camera Fails

Setting up a production ready VPS is a lot easier than I thought.

Coolify Crash Course | Self Host 101 | Secure Set up

Coolify: The Ultimate Self-Hosted Platform as a Service?

Deploy Next.js 16 To VPS Like A Pro (Coolify, Cloudflare CDN & Tunnel)

Deutschland – Curaçao Highlights | Gruppe E, FIFA WM 2026 | sportstudio

Cloudflare Tunnel: Make Localhost Public Without Port Forwarding (2026 Guide)

Migrate Coolify to a new server • 2025

Self Host 101 - Run Multiple Apps with Caddy | DNS, Static Sites, Reverse Proxies and Let's Encrypt

Self Host 101 - Set up and Secure Your Own Server

Yuval Noah Harari on Donald Trump’s Core Delusion | The Ezra Klein Show

