feat: standalone single-tenant deployment mode
Single-tenant installations now run the server directly without Logto or the SaaS management plane. The installer generates a simpler compose with 5 services: traefik, postgres, clickhouse, cameleer3-server, and cameleer3-server-ui. Uses local auth (built-in admin), no OIDC. Multi-tenant (vendor) mode is unchanged — full SaaS stack with Logto. Changes: - New DEPLOYMENT_MODE variable (standalone/saas) replaces TENANT_ORG_NAME - generate_compose_file_standalone() for the 5-service compose - Standalone traefik-dynamic.yml (no /platform/ redirect) - Stock postgres:16-alpine (server creates schema via Flyway) - Standalone health checks (server + UI instead of Logto + SaaS) - Standalone credentials/docs generation - Remove Phase 12b from bootstrap (no longer needed) - Remove setup_single_tenant_record (no longer needed) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -80,7 +80,6 @@ services:
|
||||
VENDOR_SEED_ENABLED: "${VENDOR_SEED_ENABLED:-false}"
|
||||
VENDOR_USER: ${VENDOR_USER:-vendor}
|
||||
VENDOR_PASS: ${VENDOR_PASS:-vendor}
|
||||
TENANT_ORG_NAME: ${TENANT_ORG_NAME:-}
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "node -e \"require('http').get('http://localhost:3001/oidc/.well-known/openid-configuration', r => process.exit(r.statusCode === 200 ? 0 : 1)).on('error', () => process.exit(1))\" && test -f /data/logto-bootstrap.json"]
|
||||
interval: 10s
|
||||
|
||||
Reference in New Issue
Block a user