supabase updates
This commit is contained in:
@@ -9,7 +9,7 @@ name: supabase-dev
|
|||||||
services:
|
services:
|
||||||
studio:
|
studio:
|
||||||
container_name: supabase-dev-studio
|
container_name: supabase-dev-studio
|
||||||
image: supabase/studio:20240923-2e3e90c
|
image: supabase/studio:2026.04.27-sha-5f60601
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test:
|
test:
|
||||||
@@ -48,10 +48,10 @@ services:
|
|||||||
|
|
||||||
kong-dev:
|
kong-dev:
|
||||||
container_name: supabase-dev-kong
|
container_name: supabase-dev-kong
|
||||||
image: kong:2.8.1
|
image: kong/kong:3.9.1
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
# https://unix.stackexchange.com/a/294837
|
# https://unix.stackexchange.com/a/294837
|
||||||
entrypoint: bash -c 'eval "echo \"$$(cat ~/temp.yml)\"" > ~/kong.yml && /docker-entrypoint.sh kong docker-start'
|
entrypoint: /home/kong/kong-entrypoint.sh
|
||||||
# SECURITY (R2/F2/I3): host ports unpublished. Kong is reached only via Caddy
|
# SECURITY (R2/F2/I3): host ports unpublished. Kong is reached only via Caddy
|
||||||
# over the internal docker network (api.linumiq.net -> supabase-kong:8000).
|
# over the internal docker network (api.linumiq.net -> supabase-kong:8000).
|
||||||
depends_on:
|
depends_on:
|
||||||
@@ -59,7 +59,7 @@ services:
|
|||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
environment:
|
environment:
|
||||||
KONG_DATABASE: "off"
|
KONG_DATABASE: "off"
|
||||||
KONG_DECLARATIVE_CONFIG: /home/kong/kong.yml
|
KONG_DECLARATIVE_CONFIG: /usr/local/kong/kong.yml
|
||||||
# https://github.com/supabase/cli/issues/14
|
# https://github.com/supabase/cli/issues/14
|
||||||
KONG_DNS_ORDER: LAST,A,CNAME
|
KONG_DNS_ORDER: LAST,A,CNAME
|
||||||
KONG_PLUGINS: request-transformer,cors,key-auth,acl,basic-auth,request-termination
|
KONG_PLUGINS: request-transformer,cors,key-auth,acl,basic-auth,request-termination
|
||||||
@@ -72,10 +72,13 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
# https://github.com/supabase/supabase/issues/12661
|
# https://github.com/supabase/supabase/issues/12661
|
||||||
- ./volumes/api/kong.yml:/home/kong/temp.yml:ro
|
- ./volumes/api/kong.yml:/home/kong/temp.yml:ro
|
||||||
|
- ./volumes/api/kong-entrypoint.sh:/home/kong/kong-entrypoint.sh:ro
|
||||||
|
|
||||||
auth:
|
auth:
|
||||||
container_name: supabase-dev-auth
|
container_name: supabase-dev-auth
|
||||||
image: supabase/gotrue:v2.158.1
|
image: supabase/gotrue:v2.186.0
|
||||||
|
volumes:
|
||||||
|
- ./volumes/gotrue/email-templates:/etc/gotrue-templates:ro
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
# Disable this if you are using an external Postgres database
|
# Disable this if you are using an external Postgres database
|
||||||
@@ -130,9 +133,21 @@ services:
|
|||||||
GOTRUE_MAILER_URLPATHS_CONFIRMATION: ${MAILER_URLPATHS_CONFIRMATION}
|
GOTRUE_MAILER_URLPATHS_CONFIRMATION: ${MAILER_URLPATHS_CONFIRMATION}
|
||||||
GOTRUE_MAILER_URLPATHS_RECOVERY: ${MAILER_URLPATHS_RECOVERY}
|
GOTRUE_MAILER_URLPATHS_RECOVERY: ${MAILER_URLPATHS_RECOVERY}
|
||||||
GOTRUE_MAILER_URLPATHS_EMAIL_CHANGE: ${MAILER_URLPATHS_EMAIL_CHANGE}
|
GOTRUE_MAILER_URLPATHS_EMAIL_CHANGE: ${MAILER_URLPATHS_EMAIL_CHANGE}
|
||||||
|
GOTRUE_MAILER_TEMPLATES_CONFIRMATION: ${MAILER_TEMPLATES_CONFIRMATION}
|
||||||
|
|
||||||
GOTRUE_EXTERNAL_PHONE_ENABLED: ${ENABLE_PHONE_SIGNUP}
|
GOTRUE_EXTERNAL_PHONE_ENABLED: ${ENABLE_PHONE_SIGNUP}
|
||||||
GOTRUE_SMS_AUTOCONFIRM: ${ENABLE_PHONE_AUTOCONFIRM}
|
GOTRUE_SMS_AUTOCONFIRM: ${ENABLE_PHONE_AUTOCONFIRM}
|
||||||
|
|
||||||
|
# --- MFA (TOTP + WebAuthn) — DEV only ---
|
||||||
|
GOTRUE_MFA_MAX_ENROLLED_FACTORS: ${GOTRUE_MFA_MAX_ENROLLED_FACTORS}
|
||||||
|
GOTRUE_MFA_TOTP_ENROLL_ENABLED: ${GOTRUE_MFA_TOTP_ENROLL_ENABLED}
|
||||||
|
GOTRUE_MFA_TOTP_VERIFY_ENABLED: ${GOTRUE_MFA_TOTP_VERIFY_ENABLED}
|
||||||
|
GOTRUE_MFA_WEB_AUTHN_ENROLL_ENABLED: ${GOTRUE_MFA_WEB_AUTHN_ENROLL_ENABLED}
|
||||||
|
GOTRUE_MFA_WEB_AUTHN_VERIFY_ENABLED: ${GOTRUE_MFA_WEB_AUTHN_VERIFY_ENABLED}
|
||||||
|
GOTRUE_MFA_PHONE_ENROLL_ENABLED: ${GOTRUE_MFA_PHONE_ENROLL_ENABLED}
|
||||||
|
GOTRUE_MFA_PHONE_VERIFY_ENABLED: ${GOTRUE_MFA_PHONE_VERIFY_ENABLED}
|
||||||
|
GOTRUE_MFA_WEB_AUTHN_RP_ID: ${GOTRUE_MFA_WEB_AUTHN_RP_ID}
|
||||||
|
GOTRUE_MFA_WEB_AUTHN_RP_ORIGINS: ${GOTRUE_MFA_WEB_AUTHN_RP_ORIGINS}
|
||||||
# Uncomment to enable custom access token hook. Please see: https://supabase.com/docs/guides/auth/auth-hooks for full list of hooks and additional details about custom_access_token_hook
|
# Uncomment to enable custom access token hook. Please see: https://supabase.com/docs/guides/auth/auth-hooks for full list of hooks and additional details about custom_access_token_hook
|
||||||
|
|
||||||
# GOTRUE_HOOK_CUSTOM_ACCESS_TOKEN_ENABLED: "true"
|
# GOTRUE_HOOK_CUSTOM_ACCESS_TOKEN_ENABLED: "true"
|
||||||
@@ -159,7 +174,7 @@ services:
|
|||||||
|
|
||||||
rest:
|
rest:
|
||||||
container_name: supabase-dev-rest
|
container_name: supabase-dev-rest
|
||||||
image: postgrest/postgrest:v12.2.0
|
image: postgrest/postgrest:v14.8
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
# Disable this if you are using an external Postgres database
|
# Disable this if you are using an external Postgres database
|
||||||
@@ -180,7 +195,7 @@ services:
|
|||||||
realtime:
|
realtime:
|
||||||
# This container name looks inconsistent but is correct because realtime constructs tenant id by parsing the subdomain
|
# This container name looks inconsistent but is correct because realtime constructs tenant id by parsing the subdomain
|
||||||
container_name: realtime-dev.supabase-dev-realtime
|
container_name: realtime-dev.supabase-dev-realtime
|
||||||
image: supabase/realtime:v2.30.34
|
image: supabase/realtime:v2.76.5
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
# Disable this if you are using an external Postgres database
|
# Disable this if you are using an external Postgres database
|
||||||
@@ -214,7 +229,8 @@ services:
|
|||||||
DB_AFTER_CONNECT_QUERY: 'SET search_path TO _realtime'
|
DB_AFTER_CONNECT_QUERY: 'SET search_path TO _realtime'
|
||||||
DB_ENC_KEY: supabaserealtime
|
DB_ENC_KEY: supabaserealtime
|
||||||
API_JWT_SECRET: ${JWT_SECRET}
|
API_JWT_SECRET: ${JWT_SECRET}
|
||||||
SECRET_KEY_BASE: UpNVntn3cDxHJpq99YMc1T1AQgQpc8kfYTuRgBiYa15BLrx8etQoXz3gZv1/u2oq
|
METRICS_JWT_SECRET: ${JWT_SECRET}
|
||||||
|
SECRET_KEY_BASE: ${SECRET_KEY_BASE}
|
||||||
ERL_AFLAGS: -proto_dist inet_tcp
|
ERL_AFLAGS: -proto_dist inet_tcp
|
||||||
DNS_NODES: "''"
|
DNS_NODES: "''"
|
||||||
RLIMIT_NOFILE: "10000"
|
RLIMIT_NOFILE: "10000"
|
||||||
@@ -224,7 +240,7 @@ services:
|
|||||||
# To use S3 backed storage: docker compose -f docker-compose.yml -f docker-compose.s3.yml up
|
# To use S3 backed storage: docker compose -f docker-compose.yml -f docker-compose.s3.yml up
|
||||||
storage:
|
storage:
|
||||||
container_name: supabase-dev-storage
|
container_name: supabase-dev-storage
|
||||||
image: supabase/storage-api:v1.10.1
|
image: supabase/storage-api:v1.48.26
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
# Disable this if you are using an external Postgres database
|
# Disable this if you are using an external Postgres database
|
||||||
@@ -251,6 +267,7 @@ services:
|
|||||||
ANON_KEY: ${ANON_KEY}
|
ANON_KEY: ${ANON_KEY}
|
||||||
SERVICE_KEY: ${SERVICE_ROLE_KEY}
|
SERVICE_KEY: ${SERVICE_ROLE_KEY}
|
||||||
POSTGREST_URL: http://rest:3000
|
POSTGREST_URL: http://rest:3000
|
||||||
|
AUTH_JWT_SECRET: ${JWT_SECRET}
|
||||||
PGRST_JWT_SECRET: ${JWT_SECRET}
|
PGRST_JWT_SECRET: ${JWT_SECRET}
|
||||||
DATABASE_URL: postgres://supabase_storage_admin:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}
|
DATABASE_URL: postgres://supabase_storage_admin:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}
|
||||||
FILE_SIZE_LIMIT: 52428800
|
FILE_SIZE_LIMIT: 52428800
|
||||||
@@ -267,7 +284,7 @@ services:
|
|||||||
|
|
||||||
imgproxy:
|
imgproxy:
|
||||||
container_name: supabase-dev-imgproxy
|
container_name: supabase-dev-imgproxy
|
||||||
image: darthsim/imgproxy:v3.8.0
|
image: darthsim/imgproxy:v3.30.1
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: [ "CMD", "imgproxy", "health" ]
|
test: [ "CMD", "imgproxy", "health" ]
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
@@ -277,13 +294,13 @@ services:
|
|||||||
IMGPROXY_BIND: ":5001"
|
IMGPROXY_BIND: ":5001"
|
||||||
IMGPROXY_LOCAL_FILESYSTEM_ROOT: /
|
IMGPROXY_LOCAL_FILESYSTEM_ROOT: /
|
||||||
IMGPROXY_USE_ETAG: "true"
|
IMGPROXY_USE_ETAG: "true"
|
||||||
IMGPROXY_ENABLE_WEBP_DETECTION: ${IMGPROXY_ENABLE_WEBP_DETECTION}
|
IMGPROXY_AUTO_WEBP: ${IMGPROXY_AUTO_WEBP}
|
||||||
volumes:
|
volumes:
|
||||||
- ./volumes/storage:/var/lib/storage:z
|
- ./volumes/storage:/var/lib/storage:z
|
||||||
|
|
||||||
meta:
|
meta:
|
||||||
container_name: supabase-dev-meta
|
container_name: supabase-dev-meta
|
||||||
image: supabase/postgres-meta:v0.83.2
|
image: supabase/postgres-meta:v0.96.3
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
# Disable this if you are using an external Postgres database
|
# Disable this if you are using an external Postgres database
|
||||||
@@ -298,10 +315,11 @@ services:
|
|||||||
PG_META_DB_NAME: ${POSTGRES_DB}
|
PG_META_DB_NAME: ${POSTGRES_DB}
|
||||||
PG_META_DB_USER: supabase_admin
|
PG_META_DB_USER: supabase_admin
|
||||||
PG_META_DB_PASSWORD: ${POSTGRES_PASSWORD}
|
PG_META_DB_PASSWORD: ${POSTGRES_PASSWORD}
|
||||||
|
CRYPTO_KEY: ${PG_META_CRYPTO_KEY}
|
||||||
|
|
||||||
functions-dev:
|
functions-dev:
|
||||||
container_name: supabase-dev-edge-functions
|
container_name: supabase-dev-edge-functions
|
||||||
image: supabase/edge-runtime:v1.58.3
|
image: supabase/edge-runtime:v1.71.2
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
analytics:
|
analytics:
|
||||||
@@ -311,6 +329,8 @@ services:
|
|||||||
SUPABASE_URL: http://kong:8000
|
SUPABASE_URL: http://kong:8000
|
||||||
SUPABASE_ANON_KEY: ${ANON_KEY}
|
SUPABASE_ANON_KEY: ${ANON_KEY}
|
||||||
SUPABASE_SERVICE_ROLE_KEY: ${SERVICE_ROLE_KEY}
|
SUPABASE_SERVICE_ROLE_KEY: ${SERVICE_ROLE_KEY}
|
||||||
|
SUPABASE_PUBLISHABLE_KEYS: "{\"default\":\"${SUPABASE_PUBLISHABLE_KEY:-}\"}"
|
||||||
|
SUPABASE_SECRET_KEYS: "{\"default\":\"${SUPABASE_SECRET_KEY:-}\"}"
|
||||||
SUPABASE_DB_URL: postgresql://postgres:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}
|
SUPABASE_DB_URL: postgresql://postgres:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}
|
||||||
# TODO: Allow configuring VERIFY_JWT per function. This PR might help: https://github.com/supabase/cli/pull/786
|
# TODO: Allow configuring VERIFY_JWT per function. This PR might help: https://github.com/supabase/cli/pull/786
|
||||||
VERIFY_JWT: "${FUNCTIONS_VERIFY_JWT}"
|
VERIFY_JWT: "${FUNCTIONS_VERIFY_JWT}"
|
||||||
@@ -326,7 +346,7 @@ services:
|
|||||||
|
|
||||||
analytics:
|
analytics:
|
||||||
container_name: supabase-dev-analytics
|
container_name: supabase-dev-analytics
|
||||||
image: supabase/logflare:1.4.0
|
image: supabase/logflare:1.36.1
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: [ "CMD", "curl", "http://localhost:4000/health" ]
|
test: [ "CMD", "curl", "http://localhost:4000/health" ]
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
@@ -353,6 +373,8 @@ services:
|
|||||||
DB_SCHEMA: _analytics
|
DB_SCHEMA: _analytics
|
||||||
LOGFLARE_API_KEY: ${LOGFLARE_API_KEY}
|
LOGFLARE_API_KEY: ${LOGFLARE_API_KEY}
|
||||||
LOGFLARE_SINGLE_TENANT: true
|
LOGFLARE_SINGLE_TENANT: true
|
||||||
|
LOGFLARE_PUBLIC_ACCESS_TOKEN: ${LOGFLARE_PUBLIC_ACCESS_TOKEN}
|
||||||
|
LOGFLARE_PRIVATE_ACCESS_TOKEN: ${LOGFLARE_PRIVATE_ACCESS_TOKEN}
|
||||||
LOGFLARE_SUPABASE_MODE: true
|
LOGFLARE_SUPABASE_MODE: true
|
||||||
LOGFLARE_MIN_CLUSTER_SIZE: 1
|
LOGFLARE_MIN_CLUSTER_SIZE: 1
|
||||||
|
|
||||||
@@ -368,7 +390,7 @@ services:
|
|||||||
# Comment out everything below this point if you are using an external Postgres database
|
# Comment out everything below this point if you are using an external Postgres database
|
||||||
db:
|
db:
|
||||||
container_name: supabase-dev-db
|
container_name: supabase-dev-db
|
||||||
image: supabase/postgres:15.1.1.78
|
image: supabase/postgres:15.8.1.085
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: pg_isready -U postgres -h localhost
|
test: pg_isready -U postgres -h localhost
|
||||||
interval: 5s
|
interval: 5s
|
||||||
@@ -450,7 +472,7 @@ services:
|
|||||||
|
|
||||||
vector:
|
vector:
|
||||||
container_name: supabase-dev-vector
|
container_name: supabase-dev-vector
|
||||||
image: timberio/vector:0.28.1-alpine
|
image: timberio/vector:0.53.0-alpine
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test:
|
test:
|
||||||
[
|
[
|
||||||
@@ -472,12 +494,13 @@ services:
|
|||||||
- ./volumes/logs/vector.yml:/etc/vector/vector.yml:ro
|
- ./volumes/logs/vector.yml:/etc/vector/vector.yml:ro
|
||||||
environment:
|
environment:
|
||||||
LOGFLARE_API_KEY: ${LOGFLARE_API_KEY}
|
LOGFLARE_API_KEY: ${LOGFLARE_API_KEY}
|
||||||
|
LOGFLARE_PUBLIC_ACCESS_TOKEN: ${LOGFLARE_PUBLIC_ACCESS_TOKEN}
|
||||||
command: [ "--config", "etc/vector/vector.yml" ]
|
command: [ "--config", "etc/vector/vector.yml" ]
|
||||||
|
|
||||||
# Update the DATABASE_URL if you are using an external Postgres database
|
# Update the DATABASE_URL if you are using an external Postgres database
|
||||||
supavisor:
|
supavisor:
|
||||||
container_name: supabase-dev-pooler
|
container_name: supabase-dev-pooler
|
||||||
image: supabase/supavisor:1.1.56
|
image: supabase/supavisor:2.7.4
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: curl -sSfL --head -o /dev/null "http://127.0.0.1:4000/api/health"
|
test: curl -sSfL --head -o /dev/null "http://127.0.0.1:4000/api/health"
|
||||||
interval: 10s
|
interval: 10s
|
||||||
@@ -500,7 +523,7 @@ services:
|
|||||||
- POSTGRES_PORT=${POSTGRES_PORT}
|
- POSTGRES_PORT=${POSTGRES_PORT}
|
||||||
- POSTGRES_DB=${POSTGRES_DB}
|
- POSTGRES_DB=${POSTGRES_DB}
|
||||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||||
- DATABASE_URL=ecto://postgres:${POSTGRES_PASSWORD}@db:${POSTGRES_PORT}/_supabase
|
- DATABASE_URL=ecto://supabase_admin:${POSTGRES_PASSWORD}@db:${POSTGRES_PORT}/_supabase
|
||||||
- CLUSTER_POSTGRES=true
|
- CLUSTER_POSTGRES=true
|
||||||
# SECURITY (R3): replaced predictable upstream-default supavisor secrets.
|
# SECURITY (R3): replaced predictable upstream-default supavisor secrets.
|
||||||
- SECRET_KEY_BASE=${SUPAVISOR_SECRET_KEY_BASE}
|
- SECRET_KEY_BASE=${SUPAVISOR_SECRET_KEY_BASE}
|
||||||
@@ -513,5 +536,6 @@ services:
|
|||||||
- POOLER_DEFAULT_POOL_SIZE=${POOLER_DEFAULT_POOL_SIZE}
|
- POOLER_DEFAULT_POOL_SIZE=${POOLER_DEFAULT_POOL_SIZE}
|
||||||
- POOLER_MAX_CLIENT_CONN=${POOLER_MAX_CLIENT_CONN}
|
- POOLER_MAX_CLIENT_CONN=${POOLER_MAX_CLIENT_CONN}
|
||||||
- POOLER_POOL_MODE=transaction
|
- POOLER_POOL_MODE=transaction
|
||||||
|
- DB_POOL_SIZE=${POOLER_DB_POOL_SIZE}
|
||||||
volumes:
|
volumes:
|
||||||
- ./volumes/pooler/pooler.exs:/etc/pooler/pooler.exs:ro
|
- ./volumes/pooler/pooler.exs:/etc/pooler/pooler.exs:ro
|
||||||
|
|||||||
+40
-18
@@ -9,7 +9,7 @@ name: supabase
|
|||||||
services:
|
services:
|
||||||
studio:
|
studio:
|
||||||
container_name: supabase-studio
|
container_name: supabase-studio
|
||||||
image: supabase/studio:20240923-2e3e90c
|
image: supabase/studio:2026.04.27-sha-5f60601
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test:
|
test:
|
||||||
@@ -48,10 +48,10 @@ services:
|
|||||||
|
|
||||||
kong:
|
kong:
|
||||||
container_name: supabase-kong
|
container_name: supabase-kong
|
||||||
image: kong:2.8.1
|
image: kong/kong:3.9.1
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
# https://unix.stackexchange.com/a/294837
|
# https://unix.stackexchange.com/a/294837
|
||||||
entrypoint: bash -c 'eval "echo \"$$(cat ~/temp.yml)\"" > ~/kong.yml && /docker-entrypoint.sh kong docker-start'
|
entrypoint: /home/kong/kong-entrypoint.sh
|
||||||
# SECURITY (R2/F2/I3): host ports unpublished. Kong is reached only via Caddy
|
# SECURITY (R2/F2/I3): host ports unpublished. Kong is reached only via Caddy
|
||||||
# over the internal docker network (api.linumiq.net -> supabase-kong:8000).
|
# over the internal docker network (api.linumiq.net -> supabase-kong:8000).
|
||||||
depends_on:
|
depends_on:
|
||||||
@@ -59,7 +59,7 @@ services:
|
|||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
environment:
|
environment:
|
||||||
KONG_DATABASE: "off"
|
KONG_DATABASE: "off"
|
||||||
KONG_DECLARATIVE_CONFIG: /home/kong/kong.yml
|
KONG_DECLARATIVE_CONFIG: /usr/local/kong/kong.yml
|
||||||
# https://github.com/supabase/cli/issues/14
|
# https://github.com/supabase/cli/issues/14
|
||||||
KONG_DNS_ORDER: LAST,A,CNAME
|
KONG_DNS_ORDER: LAST,A,CNAME
|
||||||
KONG_PLUGINS: request-transformer,cors,key-auth,acl,basic-auth,request-termination
|
KONG_PLUGINS: request-transformer,cors,key-auth,acl,basic-auth,request-termination
|
||||||
@@ -72,10 +72,11 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
# https://github.com/supabase/supabase/issues/12661
|
# https://github.com/supabase/supabase/issues/12661
|
||||||
- ./volumes/api/kong.yml:/home/kong/temp.yml:ro
|
- ./volumes/api/kong.yml:/home/kong/temp.yml:ro
|
||||||
|
- ./volumes/api/kong-entrypoint.sh:/home/kong/kong-entrypoint.sh:ro
|
||||||
|
|
||||||
auth:
|
auth:
|
||||||
container_name: supabase-auth
|
container_name: supabase-auth
|
||||||
image: supabase/gotrue:v2.158.1
|
image: supabase/gotrue:v2.186.0
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
# Disable this if you are using an external Postgres database
|
# Disable this if you are using an external Postgres database
|
||||||
@@ -130,9 +131,21 @@ services:
|
|||||||
GOTRUE_MAILER_URLPATHS_CONFIRMATION: ${MAILER_URLPATHS_CONFIRMATION}
|
GOTRUE_MAILER_URLPATHS_CONFIRMATION: ${MAILER_URLPATHS_CONFIRMATION}
|
||||||
GOTRUE_MAILER_URLPATHS_RECOVERY: ${MAILER_URLPATHS_RECOVERY}
|
GOTRUE_MAILER_URLPATHS_RECOVERY: ${MAILER_URLPATHS_RECOVERY}
|
||||||
GOTRUE_MAILER_URLPATHS_EMAIL_CHANGE: ${MAILER_URLPATHS_EMAIL_CHANGE}
|
GOTRUE_MAILER_URLPATHS_EMAIL_CHANGE: ${MAILER_URLPATHS_EMAIL_CHANGE}
|
||||||
|
GOTRUE_MAILER_TEMPLATES_CONFIRMATION: ${MAILER_TEMPLATES_CONFIRMATION}
|
||||||
|
|
||||||
GOTRUE_EXTERNAL_PHONE_ENABLED: ${ENABLE_PHONE_SIGNUP}
|
GOTRUE_EXTERNAL_PHONE_ENABLED: ${ENABLE_PHONE_SIGNUP}
|
||||||
GOTRUE_SMS_AUTOCONFIRM: ${ENABLE_PHONE_AUTOCONFIRM}
|
GOTRUE_SMS_AUTOCONFIRM: ${ENABLE_PHONE_AUTOCONFIRM}
|
||||||
|
|
||||||
|
# --- MFA (TOTP + WebAuthn) — PROD ---
|
||||||
|
GOTRUE_MFA_MAX_ENROLLED_FACTORS: ${GOTRUE_MFA_MAX_ENROLLED_FACTORS}
|
||||||
|
GOTRUE_MFA_TOTP_ENROLL_ENABLED: ${GOTRUE_MFA_TOTP_ENROLL_ENABLED}
|
||||||
|
GOTRUE_MFA_TOTP_VERIFY_ENABLED: ${GOTRUE_MFA_TOTP_VERIFY_ENABLED}
|
||||||
|
GOTRUE_MFA_WEB_AUTHN_ENROLL_ENABLED: ${GOTRUE_MFA_WEB_AUTHN_ENROLL_ENABLED}
|
||||||
|
GOTRUE_MFA_WEB_AUTHN_VERIFY_ENABLED: ${GOTRUE_MFA_WEB_AUTHN_VERIFY_ENABLED}
|
||||||
|
GOTRUE_MFA_PHONE_ENROLL_ENABLED: ${GOTRUE_MFA_PHONE_ENROLL_ENABLED}
|
||||||
|
GOTRUE_MFA_PHONE_VERIFY_ENABLED: ${GOTRUE_MFA_PHONE_VERIFY_ENABLED}
|
||||||
|
GOTRUE_MFA_WEB_AUTHN_RP_ID: ${GOTRUE_MFA_WEB_AUTHN_RP_ID}
|
||||||
|
GOTRUE_MFA_WEB_AUTHN_RP_ORIGINS: ${GOTRUE_MFA_WEB_AUTHN_RP_ORIGINS}
|
||||||
# Uncomment to enable custom access token hook. Please see: https://supabase.com/docs/guides/auth/auth-hooks for full list of hooks and additional details about custom_access_token_hook
|
# Uncomment to enable custom access token hook. Please see: https://supabase.com/docs/guides/auth/auth-hooks for full list of hooks and additional details about custom_access_token_hook
|
||||||
|
|
||||||
# GOTRUE_HOOK_CUSTOM_ACCESS_TOKEN_ENABLED: "true"
|
# GOTRUE_HOOK_CUSTOM_ACCESS_TOKEN_ENABLED: "true"
|
||||||
@@ -159,7 +172,7 @@ services:
|
|||||||
|
|
||||||
rest:
|
rest:
|
||||||
container_name: supabase-rest
|
container_name: supabase-rest
|
||||||
image: postgrest/postgrest:v12.2.0
|
image: postgrest/postgrest:v14.8
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
# Disable this if you are using an external Postgres database
|
# Disable this if you are using an external Postgres database
|
||||||
@@ -180,7 +193,7 @@ services:
|
|||||||
realtime:
|
realtime:
|
||||||
# This container name looks inconsistent but is correct because realtime constructs tenant id by parsing the subdomain
|
# This container name looks inconsistent but is correct because realtime constructs tenant id by parsing the subdomain
|
||||||
container_name: realtime-dev.supabase-realtime
|
container_name: realtime-dev.supabase-realtime
|
||||||
image: supabase/realtime:v2.30.34
|
image: supabase/realtime:v2.76.5
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
# Disable this if you are using an external Postgres database
|
# Disable this if you are using an external Postgres database
|
||||||
@@ -214,7 +227,8 @@ services:
|
|||||||
DB_AFTER_CONNECT_QUERY: 'SET search_path TO _realtime'
|
DB_AFTER_CONNECT_QUERY: 'SET search_path TO _realtime'
|
||||||
DB_ENC_KEY: supabaserealtime
|
DB_ENC_KEY: supabaserealtime
|
||||||
API_JWT_SECRET: ${JWT_SECRET}
|
API_JWT_SECRET: ${JWT_SECRET}
|
||||||
SECRET_KEY_BASE: UpNVntn3cDxHJpq99YMc1T1AQgQpc8kfYTuRgBiYa15BLrx8etQoXz3gZv1/u2oq
|
METRICS_JWT_SECRET: ${JWT_SECRET}
|
||||||
|
SECRET_KEY_BASE: ${SECRET_KEY_BASE}
|
||||||
ERL_AFLAGS: -proto_dist inet_tcp
|
ERL_AFLAGS: -proto_dist inet_tcp
|
||||||
DNS_NODES: "''"
|
DNS_NODES: "''"
|
||||||
RLIMIT_NOFILE: "10000"
|
RLIMIT_NOFILE: "10000"
|
||||||
@@ -224,7 +238,7 @@ services:
|
|||||||
# To use S3 backed storage: docker compose -f docker-compose.yml -f docker-compose.s3.yml up
|
# To use S3 backed storage: docker compose -f docker-compose.yml -f docker-compose.s3.yml up
|
||||||
storage:
|
storage:
|
||||||
container_name: supabase-storage
|
container_name: supabase-storage
|
||||||
image: supabase/storage-api:v1.10.1
|
image: supabase/storage-api:v1.48.26
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
# Disable this if you are using an external Postgres database
|
# Disable this if you are using an external Postgres database
|
||||||
@@ -251,6 +265,7 @@ services:
|
|||||||
ANON_KEY: ${ANON_KEY}
|
ANON_KEY: ${ANON_KEY}
|
||||||
SERVICE_KEY: ${SERVICE_ROLE_KEY}
|
SERVICE_KEY: ${SERVICE_ROLE_KEY}
|
||||||
POSTGREST_URL: http://rest:3000
|
POSTGREST_URL: http://rest:3000
|
||||||
|
AUTH_JWT_SECRET: ${JWT_SECRET}
|
||||||
PGRST_JWT_SECRET: ${JWT_SECRET}
|
PGRST_JWT_SECRET: ${JWT_SECRET}
|
||||||
DATABASE_URL: postgres://supabase_storage_admin:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}
|
DATABASE_URL: postgres://supabase_storage_admin:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}
|
||||||
FILE_SIZE_LIMIT: 52428800
|
FILE_SIZE_LIMIT: 52428800
|
||||||
@@ -267,7 +282,7 @@ services:
|
|||||||
|
|
||||||
imgproxy:
|
imgproxy:
|
||||||
container_name: supabase-imgproxy
|
container_name: supabase-imgproxy
|
||||||
image: darthsim/imgproxy:v3.8.0
|
image: darthsim/imgproxy:v3.30.1
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: [ "CMD", "imgproxy", "health" ]
|
test: [ "CMD", "imgproxy", "health" ]
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
@@ -277,13 +292,13 @@ services:
|
|||||||
IMGPROXY_BIND: ":5001"
|
IMGPROXY_BIND: ":5001"
|
||||||
IMGPROXY_LOCAL_FILESYSTEM_ROOT: /
|
IMGPROXY_LOCAL_FILESYSTEM_ROOT: /
|
||||||
IMGPROXY_USE_ETAG: "true"
|
IMGPROXY_USE_ETAG: "true"
|
||||||
IMGPROXY_ENABLE_WEBP_DETECTION: ${IMGPROXY_ENABLE_WEBP_DETECTION}
|
IMGPROXY_AUTO_WEBP: ${IMGPROXY_AUTO_WEBP}
|
||||||
volumes:
|
volumes:
|
||||||
- ./volumes/storage:/var/lib/storage:z
|
- ./volumes/storage:/var/lib/storage:z
|
||||||
|
|
||||||
meta:
|
meta:
|
||||||
container_name: supabase-meta
|
container_name: supabase-meta
|
||||||
image: supabase/postgres-meta:v0.83.2
|
image: supabase/postgres-meta:v0.96.3
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
# Disable this if you are using an external Postgres database
|
# Disable this if you are using an external Postgres database
|
||||||
@@ -298,10 +313,11 @@ services:
|
|||||||
PG_META_DB_NAME: ${POSTGRES_DB}
|
PG_META_DB_NAME: ${POSTGRES_DB}
|
||||||
PG_META_DB_USER: supabase_admin
|
PG_META_DB_USER: supabase_admin
|
||||||
PG_META_DB_PASSWORD: ${POSTGRES_PASSWORD}
|
PG_META_DB_PASSWORD: ${POSTGRES_PASSWORD}
|
||||||
|
CRYPTO_KEY: ${PG_META_CRYPTO_KEY}
|
||||||
|
|
||||||
functions:
|
functions:
|
||||||
container_name: supabase-edge-functions
|
container_name: supabase-edge-functions
|
||||||
image: supabase/edge-runtime:v1.58.3
|
image: supabase/edge-runtime:v1.71.2
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
analytics:
|
analytics:
|
||||||
@@ -311,6 +327,8 @@ services:
|
|||||||
SUPABASE_URL: http://kong:8000
|
SUPABASE_URL: http://kong:8000
|
||||||
SUPABASE_ANON_KEY: ${ANON_KEY}
|
SUPABASE_ANON_KEY: ${ANON_KEY}
|
||||||
SUPABASE_SERVICE_ROLE_KEY: ${SERVICE_ROLE_KEY}
|
SUPABASE_SERVICE_ROLE_KEY: ${SERVICE_ROLE_KEY}
|
||||||
|
SUPABASE_PUBLISHABLE_KEYS: "{\"default\":\"${SUPABASE_PUBLISHABLE_KEY:-}\"}"
|
||||||
|
SUPABASE_SECRET_KEYS: "{\"default\":\"${SUPABASE_SECRET_KEY:-}\"}"
|
||||||
SUPABASE_DB_URL: postgresql://postgres:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}
|
SUPABASE_DB_URL: postgresql://postgres:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}
|
||||||
# TODO: Allow configuring VERIFY_JWT per function. This PR might help: https://github.com/supabase/cli/pull/786
|
# TODO: Allow configuring VERIFY_JWT per function. This PR might help: https://github.com/supabase/cli/pull/786
|
||||||
VERIFY_JWT: "${FUNCTIONS_VERIFY_JWT}"
|
VERIFY_JWT: "${FUNCTIONS_VERIFY_JWT}"
|
||||||
@@ -326,7 +344,7 @@ services:
|
|||||||
|
|
||||||
analytics:
|
analytics:
|
||||||
container_name: supabase-analytics
|
container_name: supabase-analytics
|
||||||
image: supabase/logflare:1.4.0
|
image: supabase/logflare:1.36.1
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: [ "CMD", "curl", "http://localhost:4000/health" ]
|
test: [ "CMD", "curl", "http://localhost:4000/health" ]
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
@@ -353,6 +371,8 @@ services:
|
|||||||
DB_SCHEMA: _analytics
|
DB_SCHEMA: _analytics
|
||||||
LOGFLARE_API_KEY: ${LOGFLARE_API_KEY}
|
LOGFLARE_API_KEY: ${LOGFLARE_API_KEY}
|
||||||
LOGFLARE_SINGLE_TENANT: true
|
LOGFLARE_SINGLE_TENANT: true
|
||||||
|
LOGFLARE_PUBLIC_ACCESS_TOKEN: ${LOGFLARE_PUBLIC_ACCESS_TOKEN}
|
||||||
|
LOGFLARE_PRIVATE_ACCESS_TOKEN: ${LOGFLARE_PRIVATE_ACCESS_TOKEN}
|
||||||
LOGFLARE_SUPABASE_MODE: true
|
LOGFLARE_SUPABASE_MODE: true
|
||||||
LOGFLARE_MIN_CLUSTER_SIZE: 1
|
LOGFLARE_MIN_CLUSTER_SIZE: 1
|
||||||
|
|
||||||
@@ -368,7 +388,7 @@ services:
|
|||||||
# Comment out everything below this point if you are using an external Postgres database
|
# Comment out everything below this point if you are using an external Postgres database
|
||||||
db:
|
db:
|
||||||
container_name: supabase-db
|
container_name: supabase-db
|
||||||
image: supabase/postgres:15.1.1.78
|
image: supabase/postgres:15.8.1.085
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: pg_isready -U postgres -h localhost
|
test: pg_isready -U postgres -h localhost
|
||||||
interval: 5s
|
interval: 5s
|
||||||
@@ -450,7 +470,7 @@ services:
|
|||||||
|
|
||||||
vector:
|
vector:
|
||||||
container_name: supabase-vector
|
container_name: supabase-vector
|
||||||
image: timberio/vector:0.28.1-alpine
|
image: timberio/vector:0.53.0-alpine
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test:
|
test:
|
||||||
[
|
[
|
||||||
@@ -472,12 +492,13 @@ services:
|
|||||||
- ./volumes/logs/vector.yml:/etc/vector/vector.yml:ro
|
- ./volumes/logs/vector.yml:/etc/vector/vector.yml:ro
|
||||||
environment:
|
environment:
|
||||||
LOGFLARE_API_KEY: ${LOGFLARE_API_KEY}
|
LOGFLARE_API_KEY: ${LOGFLARE_API_KEY}
|
||||||
|
LOGFLARE_PUBLIC_ACCESS_TOKEN: ${LOGFLARE_PUBLIC_ACCESS_TOKEN}
|
||||||
command: [ "--config", "etc/vector/vector.yml" ]
|
command: [ "--config", "etc/vector/vector.yml" ]
|
||||||
|
|
||||||
# Update the DATABASE_URL if you are using an external Postgres database
|
# Update the DATABASE_URL if you are using an external Postgres database
|
||||||
supavisor:
|
supavisor:
|
||||||
container_name: supabase-pooler
|
container_name: supabase-pooler
|
||||||
image: supabase/supavisor:1.1.56
|
image: supabase/supavisor:2.7.4
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: curl -sSfL --head -o /dev/null "http://127.0.0.1:4000/api/health"
|
test: curl -sSfL --head -o /dev/null "http://127.0.0.1:4000/api/health"
|
||||||
interval: 10s
|
interval: 10s
|
||||||
@@ -500,7 +521,7 @@ services:
|
|||||||
- POSTGRES_PORT=${POSTGRES_PORT}
|
- POSTGRES_PORT=${POSTGRES_PORT}
|
||||||
- POSTGRES_DB=${POSTGRES_DB}
|
- POSTGRES_DB=${POSTGRES_DB}
|
||||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||||
- DATABASE_URL=ecto://postgres:${POSTGRES_PASSWORD}@db:${POSTGRES_PORT}/_supabase
|
- DATABASE_URL=ecto://supabase_admin:${POSTGRES_PASSWORD}@db:${POSTGRES_PORT}/_supabase
|
||||||
- CLUSTER_POSTGRES=true
|
- CLUSTER_POSTGRES=true
|
||||||
# SECURITY (R3): replaced predictable upstream-default supavisor secrets.
|
# SECURITY (R3): replaced predictable upstream-default supavisor secrets.
|
||||||
- SECRET_KEY_BASE=${SUPAVISOR_SECRET_KEY_BASE}
|
- SECRET_KEY_BASE=${SUPAVISOR_SECRET_KEY_BASE}
|
||||||
@@ -513,5 +534,6 @@ services:
|
|||||||
- POOLER_DEFAULT_POOL_SIZE=${POOLER_DEFAULT_POOL_SIZE}
|
- POOLER_DEFAULT_POOL_SIZE=${POOLER_DEFAULT_POOL_SIZE}
|
||||||
- POOLER_MAX_CLIENT_CONN=${POOLER_MAX_CLIENT_CONN}
|
- POOLER_MAX_CLIENT_CONN=${POOLER_MAX_CLIENT_CONN}
|
||||||
- POOLER_POOL_MODE=transaction
|
- POOLER_POOL_MODE=transaction
|
||||||
|
- DB_POOL_SIZE=${POOLER_DB_POOL_SIZE}
|
||||||
volumes:
|
volumes:
|
||||||
- ./volumes/pooler/pooler.exs:/etc/pooler/pooler.exs:ro
|
- ./volumes/pooler/pooler.exs:/etc/pooler/pooler.exs:ro
|
||||||
|
|||||||
Reference in New Issue
Block a user