Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

technologiestiftung/stadtpuls-supabase

Repository files navigation

stadtpuls.com Supabse

Configuration for running supabase locally and remote

Supabase with supabase cli

  • TBD

See https://github.com/supabase/cli/

Migrations

TBD

Supabase with 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

  • Move into the folder cd supabase-docker-compose
  • Starting all services: docker compose up
  • Stopping all services: docker compose down

Troubleshooting

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

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);