first auth impl

This commit is contained in:
Wuesteon 2025-12-01 13:30:58 +01:00
parent 8f7c63950c
commit 2a002bf6be
79 changed files with 13355 additions and 6076 deletions

View file

@ -39,7 +39,7 @@ The manacore-monorepo contains **10 product projects** with **37 deployable serv
- **Shared infrastructure** for databases (PostgreSQL) and caching (Redis)
- **Multi-stage Docker builds** optimized for pnpm workspace monorepo
- **Blue-green deployment** strategy with zero-downtime rollbacks
- **Coolify-first design** with Kubernetes compatibility
- **Docker Compose orchestration** with GitHub Container Registry
- **CDN-first static assets** (Astro landing pages, mobile OTA bundles)
---
@ -986,17 +986,17 @@ k8s/
#### Staging Environment
- **Location:** Coolify server (separate from production)
- **Orchestration:** Coolify
- **Location:** Hetzner VPS (CCX32)
- **Orchestration:** Docker Compose
- **Database:** Dedicated Supabase project (staging)
- **Domains:** `staging-chat.manacore.app`, `staging-api-chat.manacore.app`
- **SSL:** Let's Encrypt (automatic)
- **SSL:** Let's Encrypt via Traefik
- **Purpose:** Integration testing, QA, stakeholder demos
#### Production Environment
- **Location:** Coolify (current) or Kubernetes (future)
- **Orchestration:** Coolify with auto-scaling
- **Location:** Hetzner VPS (CCX42) or Kubernetes (future)
- **Orchestration:** Docker Compose with zero-downtime deployments
- **Database:** Production Supabase projects (per-project isolation)
- **Domains:** `chat.manacore.app`, `api-chat.manacore.app`, etc.
- **SSL:** Let's Encrypt with auto-renewal

View file

@ -29,19 +29,19 @@
- [ ] GitHub account (for CI/CD)
- [ ] Supabase projects created (one per product)
### Step 1: Install Coolify
### Step 1: Set up Docker Compose
```bash
# SSH into server
ssh root@your-server-ip
# Install Coolify (automated installer)
# Set up Docker Compose (automated installer)
curl -fsSL https://cdn.coollabs.io/coolify/install.sh | bash
# Verify installation
coolify --version
# Access Coolify UI
# Access Docker Compose configuration
# Navigate to: http://your-server-ip:8000
# Create admin account
```
@ -146,7 +146,7 @@ curl -X POST http://localhost:3001/api/auth/register \
### Step 7: Configure SSL (Coolify Auto)
In Coolify UI:
In Docker Compose configuration:
1. Navigate to: Settings → Domains
2. Add domain: `auth.manacore.app`
@ -283,7 +283,7 @@ docker compose --profile picture up -d
docker compose exec picture-backend pnpm migration:run
# Step 8: Configure Coolify routing
# In Coolify UI:
# In Docker Compose configuration:
# - Add new application: picture-backend
# - Domain: api-picture.manacore.app
# - Port: 3005
@ -365,7 +365,7 @@ curl -f http://localhost:3012/api/health
./scripts/smoke-test.sh http://localhost:3012
# Step 10: Switch traffic to green (Coolify)
# In Coolify UI or via API:
# In Docker Compose configuration or via API:
coolify switch-deployment chat green
# Or manually update Nginx: