10 Sentinels Active
SENTINEL 01: [AEGIS] AUDITING POCKETBASE INFRASTRUCTURE...
Back to Self-Hosted Stacks
Supabase

Deploy Supabase

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Quick Start

1

Create a directory

mkdir supabase-self-hosted && cd supabase-self-hosted
2

Create config file

Copy the content from the Config tab below into a file named docker-compose.yml

3

Deploy

docker compose up -d
Fast Track

Deploy Supabase in Minutes

Use our optimized Docker templates to deploy Supabase on any cloud provider. Get $200 in free credit to start on DigitalOcean.

Start with free creditDeploy on DigitalOcean
$200

Metadata

License
Apache-2.0
Language
TypeScript
Last Updated
10/14/2026
Category
Backend as a Service

Configuration

yaml

# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# 🚀 BUILT & MAINTAINED BY THE ALTSTACK
# 🌍 https://thealtstack.com
# 💡 Open-source deployment templates for modern self-hosting.
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

# Supabase Production-Ready Docker Compose
# Note: Supabase is a collection of services. Official images are the standard.

version: '3.8'

services:
  supabase_db:
    container_name: supabase-db
    image: supabase/postgres:15.1.1.78
    command: postgres -c config_file=/etc/postgresql/postgresql.conf -c log_min_messages=fatal
    healthcheck:
      test: ["CMD", "pg_isready", "-U", "postgres"]
      interval: 5s
      timeout: 5s
      retries: 3
    environment:
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
      PGDATA: /var/lib/postgresql/data/pgdata
    volumes:
      - supabase_db_data:/var/lib/postgresql/data
    networks:
      - supabase_net

  supabase_auth:
    container_name: supabase-auth
    image: supabase/gotrue:v2.143.0
    depends_on:
      supabase_db:
        condition: service_healthy
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:9999/health"]
      interval: 5s
      timeout: 5s
      retries: 3
    environment:
      GOTRUE_DB_DRIVER: postgres
      GOTRUE_DB_DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD:-postgres}@supabase_db:5432/postgres?sslmode=disable
      GOTRUE_SITE_URL: ${SITE_URL:-http://localhost:3000}
      GOTRUE_JWT_SECRET: ${JWT_SECRET:-super-secret-jwt-token-don-not-use-in-prod}
    networks:
      - supabase_net

  supabase_rest:
    container_name: supabase-rest
    image: postgrest/postgrest:v11.2.2
    depends_on:
      supabase_db:
        condition: service_healthy
    environment:
      PGRST_DB_URI: postgres://postgres:${POSTGRES_PASSWORD:-postgres}@supabase_db:5432/postgres
      PGRST_DB_SCHEMA: public
      PGRST_DB_ANON_ROLE: anon
    networks:
      - supabase_net

  supabase_realtime:
    container_name: supabase-realtime
    image: supabase/realtime:v2.25.56
    depends_on:
      supabase_db:
        condition: service_healthy
    environment:
      DB_HOST: supabase_db
      DB_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
      JWT_SECRET: ${JWT_SECRET:-super-secret-jwt-token-don-not-use-in-prod}
    networks:
      - supabase_net

  supabase_storage:
    container_name: supabase-storage
    image: supabase/storage-api:v0.43.12
    depends_on:
      supabase_db:
        condition: service_healthy
    environment:
      ANON_KEY: ${ANON_KEY}
      SERVICE_KEY: ${SERVICE_KEY}
      PGRST_JWT_SECRET: ${JWT_SECRET:-super-secret-jwt-token-don-not-use-in-prod}
      DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD:-postgres}@supabase_db:5432/postgres
    networks:
      - supabase_net

networks:
  supabase_net:
    driver: bridge

volumes:
  supabase_db_data:
    name: supabase_db_data

Community Notes

Help others by adding context, corrections, or warnings about this tool. Sign in to contribute.

No community notes yet. Be the first to add context.