Commit Graph

8 Commits

Author SHA1 Message Date
4039ec8187 Remove FK references to auth.users from init.sql
All checks were successful
Build and Push Docker Image / build (push) Successful in 1m55s
The auth.users table is created by GoTrue, not the database init.
FK constraints to auth.users fail because init.sql runs before auth starts.
Removed FK from members and audit_logs tables.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 11:58:31 +01:00
f599a37964 Remove shell-based healthchecks for minimal images
All checks were successful
Build and Push Docker Image / build (push) Successful in 1m47s
- PostgREST and postgres-meta images don't have /bin/sh
- Removed CMD-SHELL healthchecks that were causing unhealthy status
- Changed dependent services from service_healthy to service_started

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 11:47:24 +01:00
dec5e1950e Fix domain configuration for separate portal and API domains
All checks were successful
Build and Push Docker Image / build (push) Successful in 1m59s
- Changed from single DOMAIN variable to PORTAL_DOMAIN and API_DOMAIN
- Matches nginx config: portal.monacousa.org, api.monacousa.org, studio.monacousa.org
- Updated docker-compose.yml to use correct domain variables with defaults
- Updated setup.sh to validate both domain variables
- Updated .env.example with separate domain configuration

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 11:34:25 +01:00
c92a7ee9b8 Update port mappings to match nginx config
All checks were successful
Build and Push Docker Image / build (push) Successful in 1m55s
- Portal: 7453
- Studio: 7454
- Kong API: 7455

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 11:31:55 +01:00
35f9beabc6 Fix setup.sh: use awk instead of sed for robustness
All checks were successful
Build and Push Docker Image / build (push) Successful in 1m53s
- Use openssl rand -hex for secrets (no special chars)
- Use awk instead of sed for .env updates (handles any chars)
- Use awk for kong.yml generation (handles JWT tokens)
- Suppress source errors for malformed .env

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 11:25:47 +01:00
4f4d0dd42e Fix .env.example: quote SMTP_SENDER_NAME value
Some checks failed
Build and Push Docker Image / build (push) Has been cancelled
Values with spaces must be quoted for bash source command

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 11:24:20 +01:00
8cabe7d362 Remove Traefik from deploy package (use existing nginx)
All checks were successful
Build and Push Docker Image / build (push) Successful in 1m52s
- Remove Traefik service and related labels
- Expose ports to localhost only (3000, 8000, 3001)
- Update README with nginx proxy configuration examples
- Remove ACME_EMAIL and Traefik auth from .env.example

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 11:18:55 +01:00
3187f5babb Add standalone production deployment package
All checks were successful
Build and Push Docker Image / build (push) Successful in 1m46s
- docker-compose.yml: Standalone compose with Traefik, Supabase, portal
- init.sql: Combined database schema + all 16 migrations
- kong.yml.template: Kong config with API key placeholders
- setup.sh: Auto-generates secrets (JWT, passwords, API keys)
- .env.example: Comprehensive environment template
- README.md: Complete deployment guide

No source code cloning required - just copy files and run setup.sh

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 11:15:56 +01:00