{
  "schemaVersion": "1.0",
  "entity": "BlogPosting",
  "title": "How to Self-Host Supabase with Docker Compose on Ubuntu (2026)",
  "description": "Complete guide to self-hosting Supabase (PostgreSQL, Kong API Gateway, Auth, Realtime, Storage, and Studio UI) on Ubuntu 24.04/22.04 LTS using Docker Compose.",
  "author": "vd",
  "datePublished": "2026-07-24T00:00:00.000Z",
  "dateModified": "2026-07-24T00:00:00.000Z",
  "tags": [
    "HowTo",
    "Supabase",
    "Docker",
    "PostgreSQL",
    "Linux",
    "Self-Hosting"
  ],
  "aeoDirectAnswers": [
    {
      "question": "What are the system requirements for self-hosting Supabase?",
      "answer": "Self-hosting the complete Supabase Docker stack requires a 64-bit Linux server running Ubuntu 24.04 or 22.04 LTS with at least 4 GB RAM, 2 CPU cores, 10 GB disk space, and Docker Engine 24.0+ with Docker Compose V2 installed. Running the multi-container Supabase stack requires sufficient memory and CPU resources: **Operating System:** Ubuntu 24.04 LTS, 22.04 LTS, or Debian 12"
    },
    {
      "question": "How do you install Docker and Docker Compose on Ubuntu?",
      "answer": "To install Docker Engine and the Docker Compose V2 plugin on Ubuntu, import the official Docker GPG repository keyring and install docker-ce along with docker-compose-plugin using the apt package manager. If Docker is not already installed on your Ubuntu server: Verify Docker installation:"
    },
    {
      "question": "How do you set up Supabase using Docker Compose?",
      "answer": "To set up self-hosted Supabase using Docker Compose, clone the official Supabase repository, enter the docker directory, create a .env configuration file, and generate secure database passwords and JWT secrets. Follow these steps to clone the official Supabase setup repository and configure environment variables."
    },
    {
      "question": "How do you start and verify Supabase services?",
      "answer": "To start and verify self-hosted Supabase services, execute docker compose up -d inside your supabase/docker directory and verify container health status using docker compose ps. Once your .env file is configured, launch the container stack using Docker Compose:"
    },
    {
      "question": "How do you access Supabase Studio Dashboard?",
      "answer": "To access the web-based Supabase Studio Dashboard, open your web browser and navigate to http://:8000, which routes administrative UI traffic through the Kong API Gateway container. Open your web browser and navigate to your server's IP address or hostname on port 8000: From the **Supabase Studio Dashboard**, you can:"
    },
    {
      "question": "Is self-hosted Supabase completely free?",
      "answer": "Yes. The self-hosted Supabase Docker stack is 100% free and open-source under Apache 2.0 and MIT licenses. There are no row limits, bandwidth caps, or user quotas."
    },
    {
      "question": "What is the default port for Supabase Studio and API Gateway?",
      "answer": "Supabase Studio dashboard and Kong API Gateway both run through Kong on port 8000. The raw PostgreSQL database is exposed on port 5432."
    },
    {
      "question": "How do I update self-hosted Supabase to the latest version?",
      "answer": "Navigate to your supabase/docker directory, pull the latest git changes, pull updated Docker images, and restart:"
    },
    {
      "question": "How do I stop or restart the self-hosted Supabase stack?",
      "answer": "To stop all services: To restart all services: ---"
    }
  ],
  "semanticFactualBody": "Supabase is the leading open-source Firebase alternative, providing a full backend-as-a-service (BaaS) stack built on PostgreSQL. A complete Supabase deployment combines PostgreSQL database storage, Kong API Gateway, GoTrue authentication, PostgREST automatic REST APIs, Realtime WebSockets, Storage bucket services, Vector embeddings, and the web-based Supabase Studio UI. While Supabase offers a managed cloud service, self-hosting Supabase on Ubuntu 24.04 LTS (Noble Numbat) or 22.04 LTS (Jammy Jellyfish) using Docker Compose gives developers 100% data sovereignty, zero API usage caps, and complete control over database extensions. *Last updated: July 24, 2026* --- What are the system requirements for self-hosting Supabase? Self-hosting the complete Supabase Docker stack requires a 64-bit Linux server running Ubuntu 24.04 or 22.04 LTS with at least 4 GB RAM, 2 CPU cores, 10 GB disk space, and Docker Engine 24.0+ with Docker Compose V2 installed. Running the multi-container Supabase stack requires sufficient memory and CPU resources: **Operating System:** Ubuntu 24.04 LTS, 22.04 LTS, or Debian 12 **Memory:** Minimum 4 GB RAM (8 GB+ recommended for production database caching) **CPU:** 2 or more CPU cores **Disk Space:** 10 GB available SSD storage for Docker container images and database volumes **Prerequisites:** Docker Engine 24.0+ and Docker Compose V2 installed --- How do you install Docker and Docker Compose on Ubuntu? To install Docker Engine and the Docker Compose V2 plug"
}