Back to articles
Part 2 — The server
How-ToDevOps

Part 2 — The server

via Dev.toDinh Doan Van Bien

Part 2 of 7 — Self-hosting Supabase: a learning journey This post covers creating the server, locking it down, and getting Docker running correctly. None of it is complicated, but there are a few places where the obvious choice is the wrong one. Create the server Go to hetzner.com, create an account, and navigate to Cloud > New Server. Choose Ubuntu 24.04 LTS on a CX22 (2 vCPU, 4 GB RAM). Pick a datacenter in the EU if that matters to you. Add your SSH public key during setup. Do not set a root password. Click Create. In about 30 seconds you have a server. Note the IP address. We will call it YOUR_VPS_IP throughout the series. First login ssh root@YOUR_VPS_IP Update the system before doing anything else: apt update && apt upgrade -y Set a hostname: hostnamectl set-hostname supabase-vps Firewall Ubuntu ships with ufw. Configure it before enabling it, and do them in this order: ufw default deny incoming ufw default allow outgoing ufw allow 22/tcp ufw allow 80/tcp ufw allow 443/tcp ufw en

Continue reading on Dev.to

Opens in a new tab

Read Full Article
0 views

Related Articles