-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify docker-compose for Supabase in dev/prod (#3368)
- Loading branch information
1 parent
6abc2e7
commit 9d86ea7
Showing
6 changed files
with
34 additions
and
22 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
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
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# This is meant to be used with ./docker-compose.yml in development | ||
services: | ||
studio: | ||
ports: | ||
- ${STUDIO_PORT}:3000/tcp | ||
|
||
storage: | ||
volumes: | ||
- ./supabase/volumes/storage:/var/lib/storage | ||
|
||
db: | ||
ports: | ||
# XXX: we need access to the postgres port on localhost for our e2e tests in dev, | ||
# since they need to wait on the postgres db to become ready before starting. | ||
# See src/api/sso/jest.config.e2e.js | ||
- '5432:5432' | ||
volumes: | ||
- ./supabase/volumes/db/data:/var/lib/postgresql/data | ||
- ./supabase/volumes/db/init:/docker-entrypoint-initdb.d |
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,10 @@ | ||
# This is meant to be used with ./docker-compose.yml in production | ||
services: | ||
storage: | ||
volumes: | ||
- ../../../supabase/volumes/storage:/var/lib/storage | ||
|
||
db: | ||
volumes: | ||
- ../../../supabase/volumes/db/data:/var/lib/postgresql/data | ||
- ./supabase/volumes/db/init:/docker-entrypoint-initdb.d |