feat: scaffold supabase multi-tenant backend

This commit is contained in:
Codex
2026-06-21 21:54:43 +08:00
commit c9c767c7bd
99 changed files with 36660 additions and 0 deletions

25
docker-compose.api.yml Normal file
View File

@@ -0,0 +1,25 @@
name: tiku-saas-dev
services:
api:
build:
context: .
dockerfile: apps/api/Dockerfile
environment:
NODE_ENV: production
PORT: 8787
DATABASE_URL: postgresql://postgres:postgres@host.docker.internal:54322/postgres
DEFAULT_TENANT_SLUG: master
CORS_ORIGIN: http://127.0.0.1:5173,http://localhost:5173,http://127.0.0.1:5174,http://localhost:5174
extra_hosts:
- host.docker.internal:host-gateway
ports:
- "8787:8787"
healthcheck:
test:
- CMD-SHELL
- wget -qO- http://127.0.0.1:8787/health >/dev/null 2>&1 || exit 1
interval: 10s
timeout: 3s
retries: 6
start_period: 15s