-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(self-hosted): self hosted docker compose (#30674)
* fix(self-host): ensure migrations connect back to postgres database * fix(self-host): use supabase_admin user for supavisor pooler * fix(self-host): services healthchecks * fix(self-host): vector config path * feat(ci): add smoke test for self-hosted stack --------- Co-authored-by: Shawal Mbalire <mbalireshawal@gmail.com> Co-authored-by: Robson Martins <robson@controle.digital>
- Loading branch information
1 parent
49608fd
commit 419eba9
Showing
4 changed files
with
32 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Self-Host Tests Smoke | ||
|
||
on: | ||
pull_request: | ||
branches: ['master'] | ||
paths: | ||
- 'docker/**/*' | ||
|
||
# Cancel old builds on new commit for same workflow + branch/PR | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
sparse-checkout: | | ||
docker/ | ||
- name: Run docker-compose up | ||
# Ensure all services can be started and healthy with default config | ||
run: cd docker && cp .env.example .env && docker compose up --wait |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
\c _supabase | ||
create schema if not exists _analytics; | ||
alter schema _analytics owner to :pguser; | ||
\c postgres |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
\c _supabase | ||
create schema if not exists _supavisor; | ||
alter schema _supavisor owner to :pguser; | ||
\c postgres |
419eba9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, the correct user for supavisor pooler is supabase_admin,right?
419eba9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, fixes ab13a1e#commitcomment-149483539