Configuration for running supabase locally and remote
- TBD
See https://github.com/supabase/cli/
TBD
Run Supabase locally.
Add your passwords to the .env
file.
For better customization and security, please read the self-hosting guide.
- Move into the folder
cd supabase-docker-compose
- Starting all services:
docker compose up
- Stopping all services:
docker compose down
If your setup is broken or you want to start fresh run:
docker compose down && rm -rf dockerfiles/postgres/pg-data/* && mkdir dockerfiles/postgres/pg-data && docker rm supabase-db
- Kong: http://localhost:8000
- GoTrue: http://localhost:8000/auth/v1/?apikey=<anon-apikey-from-kong.yml>
- PostgREST: http://localhost:8000/rest/v1/?apikey=<anon-apikey-from-kong.yml>
- Realtime: http://localhost:8000/realtime/v1/?apikey=<anon-apikey-from-kong.yml>
- Storage: http://localhost:8000/storage/v1/?apikey=<anon-apikey-from-kong.yml>
- Postgres: http://localhost:5432
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);