Ultimate Self-Hosting Guide for NextJS + Supabase (2024)
Theo in Tech Theo in Tech
412 subscribers
4,511 views
55

 Published On Sep 21, 2024

1-to-1 Support Call: https://calendly.com/expoweb

In this ultimate guide for 2024, we walk you through self-hosting Next.js and Supabase using Coolify, the modern, open-source platform for deploying apps with ease! Whether you're looking to take control of your infrastructure or cut costs on managed services, this guide covers everything you need to get your stack up and running.

What’s Inside:
Step-by-step guide to deploying Next.js and Supabase on Coolify.
How to set up a fully self-hosted environment for your front-end and back-end.
Managing databases, authentication, and APIs with Supabase on your own servers.
Benefits of using Coolify for deployment, including its intuitive UI and
Docker integration.

Technical Highlights:
Installing Coolify on your server and setting up a Next.js + Supabase project.
Configuring your DNS, SSL certificates, and domains for secure hosting.
Tips for optimizing performance, scaling, and security when self-hosting.
Integrating Supabase services like PostgreSQL, Storage, and Auth.
Why Self-Host with Coolify?

Take full control of your stack without relying on third-party cloud providers.
Easily deploy and manage multiple apps using Coolify’s clean interface.
Customize your infrastructure to fit your specific needs and scale as you grow.

0:00 Introduction
1:03 Final Result
2:02 VPS Choice
2:36 Installing Coolify
3:00 Coolify UI
3:58 Environment Choice
4:28 Deploying NextJS Repo
6:45 NextJS Ressource Configuration
14:25 Cloudflare DNS Setup
15:50 Deploy
16:32 Build Error 1: BunJS
17:40 Build Error 2: Supabase Keys
18:20 Build Finished!
19:05 Frontend Working
19:30 Deploy Supabase
21:15 Deploy
21:58 Build Error 1: Minio x86 v2 Error
25:40 Supabase Containers Deployed
25:57 Supabase Admin Dashboard
28:05 Making the Postgresql DB Public
30:30 OAuth and SMTP Email Setup
35:25 Wrap Up

show more

Share/Embed