Skip to content

Commit 124e63d

Browse files
Merge pull request #205 from alnutile/patch-4
Temporary workaround for making Supabase DB publicly available
2 parents 3bb70eb + c31abc3 commit 124e63d

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed
22.6 KB
Loading

docs/services/supabase.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,42 @@ 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+
::: warning NOTE:
23+
There is a bug with making database publicly accessible. This bug will be fixed soon. In the meantime, you can use the following workaround:
24+
:::
25+
26+
Set **Supabase Db** to public
27+
28+
<ZoomableImage src="/docs/images/services/supabase-db-fix.webp" />
29+
30+
Then
31+
32+
Go to the **General** tab then **Edit Compose File**
33+
34+
Then add this line
35+
`ports:
36+
- ${POSTGRES_PORT:-5432}:${POSTGRES_PORT:-5432}`
37+
38+
To
39+
```yaml
40+
supabase-db:
41+
image: 'supabase/postgres:15.6.1.146'
42+
healthcheck:
43+
test: 'pg_isready -U postgres -h 127.0.0.1'
44+
interval: 5s
45+
timeout: 5s
46+
retries: 10
47+
depends_on:
48+
supabase-vector:
49+
condition: service_healthy
50+
ports:
51+
- ${POSTGRES_PORT:-5432}:${POSTGRES_PORT:-5432}
52+
```
53+
54+
And Restart
55+
2056
## Links
2157
2258
- [Official Website ›](https://supabase.io)

0 commit comments

Comments
 (0)