tschuehly / htmx-supabase-spring-boot-starter

Get started with htmx + Supabase + spring
https://photoquest.wedding/
42 stars 4 forks source link

How to connect to self hosted (Docker) Supabase? #8

Closed PraveenGandhi closed 3 months ago

PraveenGandhi commented 3 months ago

Hi @tschuehly ,

Thank you for this starter. Could you please share some thoughts on the way to connect to self hosted (Docker) Supabase?

Thank you.

tschuehly commented 3 months ago

Hello @PraveenGandhi,

you can connect to a local supabase instance that is started with the supabase cli with the following config:

supabase:
  projectId: default
  url: http://localhost:54321
  database:
    port: 54322
    host: 127.0.0.1
    username: postgres
    password: postgres

If you self host you should just be able to connect with the same configuration but adjusted ports and url.

PraveenGandhi commented 3 months ago

Thank you for very quick response