Files
supabase/docker
Scott Pritchard b882b96bac Adjusted search_path for postgres user
Previously: Search path would prioritise the `public` schema for searching.
Proposed change: Will now prioritise the `auth` schema first.

Reasoning: If a `public.users` table exists, calling `signUp()` will fail unless the structure matches that of `auth.users`.
2021-07-26 02:30:04 +01:00
..
2021-07-25 18:14:15 +08:00
2021-07-25 20:56:05 +08:00
2021-07-25 21:07:20 +08:00

Supabase Docker

Run Supabase locally.

Configuration

Add your passwords to the .env file. For better customization and security, please read the self-hosting guide.

Run via docker-compose

  • Starting all services: docker-compose up
  • Stopping all services: docker-compose down

Usage

Accessing the services directly

With Javascript

import { createClient } from '@supabase/supabase-js'

const SUPABASE_URL = 'http://localhost:8000'
const SUPABASE_KEY = '<anon-apikey-from-kong.yml>'

const supabase = createClient(SUPABASE_URL, SUPABASE_KEY)

Quickstart example

Once you have started all the services, you can use any of the examples in the /examples folder. For example:

  • Add some SMTP credentials in env
  • Run docker-compose up
  • Move to the Auth+Storage example: cd ../examples/nextjs-ts-user-management
  • update .env.local
    • NEXT_PUBLIC_SUPABASE_URL=http://localhost:8000
    • NEXT_PUBLIC_SUPABASE_ANON_KEY=<anon-apikey-from-kong.yml>
  • npm install
  • npm run dev