The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
use chainguard images for minio and tidy up configs
Andrey A.b9ec8927c4a3
diff --git a/docker/docker-compose.s3.yml b/docker/docker-compose.s3.ymlindex b7f8a2c70be..cb3e25c3e75 100644--- a/docker/docker-compose.s3.yml+++ b/docker/docker-compose.s3.yml@@ -1,16 +1,16 @@services:minio:- image: minio/minio- ports:- - '9000:9000'- - '9001:9001'+ image: cgr.dev/chainguard/minio+ #ports:+ # - '9000:9000'+ # - '9001:9001'environment:MINIO_ROOT_USER: ${MINIO_ROOT_USER}MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD}command: server --console-address ":9001" /datahealthcheck:- test: [ "CMD", "curl", "-f", "http://minio:9000/minio/health/live" ]+ test: [ "CMD", "mc", "ready", "local" ]interval: 2stimeout: 10sretries: 5@@ -18,7 +18,7 @@ services:- ./volumes/storage:/data:zminio-createbucket:- image: minio/mc+ image: cgr.dev/chainguard/minio-client:latest-devdepends_on:minio:condition: service_healthy@@ -30,7 +30,8 @@ services:storage:container_name: supabase-storage- image: supabase/storage-api:v1.37.1+ image: supabase/storage-api:v1.37.8+ restart: unless-stoppeddepends_on:db:# Disable this if you are using an external Postgres database@@ -41,6 +42,8 @@ services:condition: service_startedminio-createbucket:condition: service_completed_successfully+ minio:+ condition: service_healthyhealthcheck:test:[@@ -54,7 +57,6 @@ services:timeout: 5sinterval: 5sretries: 3- restart: unless-stoppedenvironment:ANON_KEY: ${ANON_KEY}SERVICE_KEY: ${SERVICE_ROLE_KEY}@@ -64,33 +66,22 @@ services:REQUEST_ALLOW_X_FORWARDED_PATH: "true"FILE_SIZE_LIMIT: 52428800STORAGE_BACKEND: s3+ # S3 bucket when using S3 backend, directory name when using 'file'GLOBAL_S3_BUCKET: ${GLOBAL_S3_BUCKET}+ # S3 Backend configurationGLOBAL_S3_ENDPOINT: http://minio:9000GLOBAL_S3_PROTOCOL: httpGLOBAL_S3_FORCE_PATH_STYLE: trueAWS_ACCESS_KEY_ID: ${MINIO_ROOT_USER}AWS_SECRET_ACCESS_KEY: ${MINIO_ROOT_PASSWORD}- AWS_DEFAULT_REGION: stub- FILE_STORAGE_BACKEND_PATH: /var/lib/storage+ #FILE_STORAGE_BACKEND_PATH: /var/lib/storageTENANT_ID: ${STORAGE_TENANT_ID}# TODO: https://github.com/supabase/storage-api/issues/55REGION: ${REGION}ENABLE_IMAGE_TRANSFORMATION: "true"IMGPROXY_URL: http://imgproxy:5001+ # S3 protocol endpoint configurationS3_PROTOCOL_ACCESS_KEY_ID: ${S3_PROTOCOL_ACCESS_KEY_ID}S3_PROTOCOL_ACCESS_KEY_SECRET: ${S3_PROTOCOL_ACCESS_KEY_SECRET}- volumes:- - ./volumes/storage:/var/lib/storage:z-- imgproxy:- container_name: supabase-imgproxy- image: darthsim/imgproxy:v3.8.0- healthcheck:- test: [ "CMD", "imgproxy", "health" ]- timeout: 5s- interval: 5s- retries: 3- environment:- IMGPROXY_BIND: ":5001"- IMGPROXY_USE_ETAG: "true"- IMGPROXY_ENABLE_WEBP_DETECTION: ${IMGPROXY_ENABLE_WEBP_DETECTION}+ #volumes:+ # - ./volumes/storage:/var/lib/storage:zdiff --git a/docker/docker-compose.yml b/docker/docker-compose.ymlindex 70568224a1d..fc6dcb3729f 100644--- a/docker/docker-compose.yml+++ b/docker/docker-compose.yml@@ -244,8 +244,14 @@ services:container_name: supabase-storageimage: supabase/storage-api:v1.37.8restart: unless-stopped- volumes:- - ./volumes/storage:/var/lib/storage:z+ depends_on:+ db:+ # Disable this if you are using an external Postgres database+ condition: service_healthy+ rest:+ condition: service_started+ imgproxy:+ condition: service_startedhealthcheck:test:[@@ -259,14 +265,6 @@ services:timeout: 5sinterval: 5sretries: 3- depends_on:- db:- # Disable this if you are using an external Postgres database- condition: service_healthy- rest:- condition: service_started- imgproxy:- condition: service_startedenvironment:ANON_KEY: ${ANON_KEY}SERVICE_KEY: ${SERVICE_ROLE_KEY}@@ -276,15 +274,25 @@ services:REQUEST_ALLOW_X_FORWARDED_PATH: "true"FILE_SIZE_LIMIT: 52428800STORAGE_BACKEND: file+ # S3 bucket when using S3 backend, directory name when using 'file'+ GLOBAL_S3_BUCKET: ${GLOBAL_S3_BUCKET}+ # S3 Backend configuration+ #GLOBAL_S3_ENDPOINT: https://your-s3-endpoint+ #GLOBAL_S3_PROTOCOL: https+ #GLOBAL_S3_FORCE_PATH_STYLE: true+ #AWS_ACCESS_KEY_ID: your-access-key-id+ #AWS_SECRET_ACCESS_KEY: your-secret-access-keyFILE_STORAGE_BACKEND_PATH: /var/lib/storageTENANT_ID: ${STORAGE_TENANT_ID}# TODO: https://github.com/supabase/storage-api/issues/55REGION: ${REGION}- GLOBAL_S3_BUCKET: ${GLOBAL_S3_BUCKET}ENABLE_IMAGE_TRANSFORMATION: "true"IMGPROXY_URL: http://imgproxy:5001+ # S3 protocol endpoint configurationS3_PROTOCOL_ACCESS_KEY_ID: ${S3_PROTOCOL_ACCESS_KEY_ID}S3_PROTOCOL_ACCESS_KEY_SECRET: ${S3_PROTOCOL_ACCESS_KEY_SECRET}+ volumes:+ - ./volumes/storage:/var/lib/storage:zimgproxy:container_name: supabase-imgproxy