Files
supabase/docker
Yannick Milhahn 0b75a82f45 Improving and securing docker setup (#1692)
* improved docker setups and readmes

* set PGRST_DB_ANON_ROLE to anon

* fixed spelling in docker .envs

Co-authored-by: Yannick <yannick.milhahn@ensolarado.de>
2021-05-24 07:05:27 +08:00
..

Supabase Docker

You can run Supabase on your local machine or a server using docker-compose. For a more secure setup to use on a server (e.g. using HTTPS), have a look at the supabase-traefik setup.

Configuration

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

Run via docker-compose

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

Usage

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)

Accessing the services directly: