Skip to content

Commit

Permalink
Update how kong.yml is used to configure Supabase in dev vs. prod (#3384
Browse files Browse the repository at this point in the history
)

* Update how kong.yml is used to configure Supabase in dev vs. prod
Co-authored-by: Josue <[email protected]>
  • Loading branch information
humphd authored Apr 2, 2022
1 parent 6b67eb3 commit 6ae5495
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 0 additions & 2 deletions docker/supabase/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ services:
# https://github.com/supabase/cli/issues/14
KONG_DNS_ORDER: LAST,A,CNAME
KONG_PLUGINS: request-transformer,cors,key-auth,acl
volumes:
- ./supabase/volumes/api/kong.yml:/var/lib/kong/kong.yml
depends_on:
- traefik
labels:
Expand Down
4 changes: 4 additions & 0 deletions docker/supabase/supabase-development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ services:
volumes:
- ./supabase/volumes/db/data:/var/lib/postgresql/data
- ./supabase/volumes/db/init:/docker-entrypoint-initdb.d

kong:
volumes:
- ./supabase/volumes/api/kong.yml:/var/lib/kong/kong.yml
10 changes: 8 additions & 2 deletions docker/supabase/supabase-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@
services:
storage:
volumes:
- ../../../supabase/volumes/storage:/var/lib/storage
- ../../supabase/volumes/storage:/var/lib/storage

db:
volumes:
- ../../../supabase/volumes/db/data:/var/lib/postgresql/data
# We keep the actual data in a volume outside of git, so it survives restarts
- ../../supabase/volumes/db/data:/var/lib/postgresql/data
# We pull in .sql migrations, schema files from the git repo
- ./supabase/volumes/db/init:/docker-entrypoint-initdb.d

kong:
volumes:
- ../../config/kong.yml:/var/lib/kong/kong.yml

0 comments on commit 6ae5495

Please sign in to comment.