supabase-js Docker & Self-Hosted Deployment

GitHub

An isomorphic Javascript client for Supabase. Query your Supabase database, subscribe to realtime events, upload and download files, browse typescript...

4,429 stars TypeScript TypeScript 1 file ยท ~1,943 tokens #client-library#database#isomorphic#javascript#js#mit-license#node-js#nuxt
RAW Compose
1. Pull Image (DOCKERHUB) docker pull supabase/postgres
2. Docker Run (1-Click Launch) docker run -d --name supabase-js -p 3012:3012 --restart always supabase/postgres:15.1.0.37
3. Podman Run podman run -d --name supabase-js -p 3012:3012 --restart always supabase/postgres:15.1.0.37
4. Skopeo Inspect (Zero-Pull Manifest) skopeo inspect docker://docker.io/supabase/postgres:15.1.0.37
5. ORAS Pull (OCI Artifact) oras pull supabase/postgres:15.1.0.37
6. Compose Deployment docker compose up -d
packages/core/postgrest-js/test/v12/docker-compose.yml
Download .yml
# PostgREST v12 backward compatibility tests
# TODO (@mandarini): Remove this file when v3 ships (early 2025)
services:
  rest12:
    image: postgrest/postgrest:v12.2.0
    ports:
      - '3012:3000'
    environment:
      PGRST_DB_URI: postgres://postgres:postgres@db:5432/postgres
      PGRST_DB_SCHEMAS: public,personal
      PGRST_DB_EXTRA_SEARCH_PATH: extensions
      PGRST_DB_ANON_ROLE: postgres
      PGRST_DB_PLAN_ENABLED: 1
      PGRST_DB_TX_END: commit-allow-override
      PGRST_DB_AGGREGATES_ENABLED: true
    depends_on:
      - db
  db:
    image: supabase/postgres:15.1.0.37
    ports:
      - '5433:5432'
    volumes:
      - .:/docker-entrypoint-initdb.d/
    environment:
      POSTGRES_DB: postgres
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: postgres