Files
CRAPP/infra/supabase/docker/docker-compose.rustfs.yml
T
davide f496eb2f88 Aggiungo stack Supabase self-hosted e config di produzione
Stack Docker completo in infra/supabase/docker/ (vendored da supabase/supabase)
per svincolare dev e produzione da Lovable Cloud. Include override di
produzione che non espone porte pubblicamente e disattiva i servizi non
usati da CrAPP (Realtime, Storage, imgproxy, Edge Functions, pooler),
un Caddyfile con routing /api/* per un solo dominio, e i template .env
per app e stack. Forzo inoltre il preset Nitro a node-server in
vite.config.ts, dato che il default sarebbe Cloudflare Workers.
2026-08-28 14:23:20 +02:00

48 lines
1.2 KiB
YAML

services:
rustfs:
image: rustfs/rustfs:1.0.0-beta.11
environment:
RUSTFS_ACCESS_KEY: ${MINIO_ROOT_USER}
RUSTFS_SECRET_KEY: ${MINIO_ROOT_PASSWORD}
RUSTFS_CONSOLE_ADDRESS: 0.0.0.0:9001
RUSTFS_CORS_ALLOWED_ORIGINS: "*"
RUSTFS_CONSOLE_CORS_ALLOWED_ORIGINS: "*"
security_opt:
- "no-new-privileges:true"
healthcheck:
test: [ "CMD", "curl", "-f", "http://rustfs:9000/health" ]
interval: 2s
timeout: 10s
retries: 5
volumes:
- rustfs-data:/data
rustfs-createbucket:
image: rustfs/rc
depends_on:
rustfs:
condition: service_healthy
entrypoint: >
/bin/sh -ec "
rc alias set supa-rustfs http://rustfs:9000 ${MINIO_ROOT_USER} ${MINIO_ROOT_PASSWORD} &&
rc mb --ignore-existing supa-rustfs/${GLOBAL_S3_BUCKET}
"
storage:
depends_on:
rustfs-createbucket:
condition: service_completed_successfully
rustfs:
condition: service_healthy
environment:
STORAGE_BACKEND: s3
GLOBAL_S3_ENDPOINT: http://rustfs:9000
GLOBAL_S3_PROTOCOL: http
GLOBAL_S3_FORCE_PATH_STYLE: true
AWS_ACCESS_KEY_ID: ${MINIO_ROOT_USER}
AWS_SECRET_ACCESS_KEY: ${MINIO_ROOT_PASSWORD}
volumes:
rustfs-data: