Files
supabase/docker/README.md
2021-05-05 00:17:38 +02:00

850 B

Docker

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

  • Add passwords to the .env file

  • 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.magCcozTMKNrl76Tj2dsM7XTl_YH0v0ilajzAvIlw3U'

const supabase = createClient(SUPABASE_URL, SUPABASE_KEY)

Accessing the services directly: