Skip to content

Commit 6b965d0

Browse files
authored
I know this is a bug but for now this will help the next person
to share the port publicly
1 parent 3bb70eb commit 6b965d0

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

docs/services/supabase.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,40 @@ The open source Firebase alternative.
1717

1818
You can find your anonymous key in the **Environment Variables** area under **SERVICE_SUPABASEANON_KEY**.
1919

20+
## Public Port Access
21+
22+
> NOTE: This is a bug and should be fixed soon.
23+
24+
Set **Supabase Db** to public
25+
26+
![CleanShot 2025-03-06 at 07 16 50@2x](https://github.com/user-attachments/assets/70f2dc52-2590-481d-a226-ba7ee3a4ba12)
27+
28+
Then
29+
30+
Go to the **General** tab then **Edit Compose File**
31+
32+
Then add this line
33+
`ports:
34+
- ${POSTGRES_PORT:-5432}:${POSTGRES_PORT:-5432}`
35+
36+
To
37+
```yaml
38+
supabase-db:
39+
image: 'supabase/postgres:15.6.1.146'
40+
healthcheck:
41+
test: 'pg_isready -U postgres -h 127.0.0.1'
42+
interval: 5s
43+
timeout: 5s
44+
retries: 10
45+
depends_on:
46+
supabase-vector:
47+
condition: service_healthy
48+
ports:
49+
- ${POSTGRES_PORT:-5432}:${POSTGRES_PORT:-5432}
50+
```
51+
52+
And Restart
53+
2054
## Links
2155
2256
- [Official Website ›](https://supabase.io)

0 commit comments

Comments
 (0)