Files
supabase/docker
Justin Shrake f944918beb Set JWT_DEFAULT_GROUP_NAME in docker-compose
With the current docker-compose configuration, the JWT issued by
gotrue contains an empty role string. Specifying
`GOTRUE_DEFAULT_GROUP_NAME: "authenticated"` ensures that the JWT
contains a role string with value "authenticated", which matches
one of the created roles in docker/postgres/00-initial-schema.sql.

Closes https://github.com/supabase/supabase/issues/804
2021-03-04 07:08:40 -08:00
..
2021-01-28 13:19:57 +08:00
2021-01-28 13:19:57 +08:00

Docker

You can run Supabase on your local machine using docker-compose:

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

Usage

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

const SUPABASE_URL = 'http://localhost:8000'
const SUPABASE_KEY = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzdXBhYmFzZSIsImlhdCI6MTYwMzk2ODgzNCwiZXhwIjoyNTUwNjUzNjM0LCJhdWQiOiIiLCJzdWIiOiIiLCJSb2xlIjoicG9zdGdyZXMifQ.kdRWxJKxqgFOlx4BZQj-GIIOEeMILqUvdHMh8ebcn8M'

const supabase = createClient(SUPABASE_URL, SUPABASE_KEY)

Accessing the services directly: