mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
makeing our mount setup far more robust (#3995)
This commit is contained in:
1 parent
226326bd1c
commit
663490876e
4 files changed
+35
-7
No files matched your search
+4
-2
@@ -1,4 +1,6 @@
|
||||
volumes/db/data
|
||||
volumes/storage
|
||||
volumes/db/data/**/*
|
||||
!volumes/db/data/.gitkeep
|
||||
volumes/storage/data/**/*
|
||||
!volumes/storage/data/.gitkeep
|
||||
.env
|
||||
test.http
|
||||
@@ -1,3 +1,5 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
kong:
|
||||
container_name: supabase-kong
|
||||
@@ -7,7 +9,9 @@ services:
|
||||
- ${KONG_HTTP_PORT}:8000/tcp
|
||||
- ${KONG_HTTPS_PORT}:8443/tcp
|
||||
volumes:
|
||||
- ./volumes/kong.yml:/var/lib/kong/kong.yml
|
||||
- type: bind
|
||||
source: ./volumes/kong.yml
|
||||
target: /var/lib/kong/kong.yml
|
||||
environment:
|
||||
KONG_DATABASE: "off"
|
||||
KONG_DECLARATIVE_CONFIG: /var/lib/kong/kong.yml
|
||||
@@ -85,7 +89,9 @@ services:
|
||||
- rest
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./volumes/storage:/var/lib/storage
|
||||
- type: volume
|
||||
source: volume_storage
|
||||
target: /var/lib/storage
|
||||
environment:
|
||||
ANON_KEY: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJyb2xlIjoiYW5vbiIsImlhdCI6MTYyNzIwODU0MCwiZXhwIjoxOTc0MzYzNzQwfQ.zcaQfHd3VA7XgJmdGfmV86OLVJT9s2MTmSy-e69BpUY
|
||||
SERVICE_KEY: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJyb2xlIjoic2VydmljZV9yb2xlIiwiaWF0IjoxNjI3MjA4NTQwLCJleHAiOjE5NzQzNjM3NDB9.pkT3PNpO4DtO45Ac5HK_TKCx8sGLgNtV__pr_ZrRSAU
|
||||
@@ -114,12 +120,32 @@ services:
|
||||
db:
|
||||
container_name: supabase-db
|
||||
image: supabase/postgres:13.3.0
|
||||
command: postgres -c wal_level=logical
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- ${POSTGRES_PORT}:5432
|
||||
volumes:
|
||||
- ./volumes/db/data:/var/lib/postgresql/data
|
||||
- ./volumes/db/init:/docker-entrypoint-initdb.d
|
||||
- type: volume
|
||||
source: volume_database
|
||||
target: /var/lib/postgresql/data
|
||||
- type: bind
|
||||
source: ./volumes/db/init
|
||||
target: /docker-entrypoint-initdb.d
|
||||
environment:
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
command: postgres -c wal_level=logical
|
||||
PGDATA: /var/lib/postgresql/data/pgdata
|
||||
|
||||
volumes:
|
||||
volume_database:
|
||||
driver: local
|
||||
driver_opts:
|
||||
type: none
|
||||
device: ./volumes/db/data
|
||||
o: bind
|
||||
|
||||
volume_storage:
|
||||
driver: local
|
||||
driver_opts:
|
||||
type: none
|
||||
device: ./volumes/storage/data
|
||||
o: bind
|
||||
Whitespace-only changes.
Whitespace-only changes.
Reference in new issue
Block a user