chore: add official supabase self-host stack

This commit is contained in:
Philipp
2026-06-09 21:58:38 +02:00
parent 206dc48403
commit fd50c05873
61 changed files with 10420 additions and 13 deletions
+12 -1
View File
@@ -19,11 +19,20 @@ Multi-Tenant-Konsole fuer Proxmox auf Basis von Go, Supabase Postgres/Auth, Redi
4. `.env.example` nach `.env` kopieren und lokale Werte setzen.
5. Abhaengigkeiten installieren: `npm install --prefix frontend`.
6. Go-Abhaengigkeiten installieren: `go work sync`.
7. Lokale Infrastruktur starten: wird mit der offiziellen Supabase-Self-Hosted-Konfiguration ergaenzt.
7. Lokale Infrastruktur starten: `make dev`.
8. Backend starten: `go run ./backend/cmd/api`.
9. Console-Proxy starten: `go run ./console-proxy/cmd/console-proxy`.
10. Frontend starten: `npm run dev --prefix frontend`.
Supabase self-hosted liegt unter `deploy/supabase/`. Die lokale `deploy/supabase/.env` wird aus der offiziellen Vorlage erzeugt und nicht committed. Fuer App-`.env` die Werte `POSTGRES_PASSWORD`, `ANON_KEY` und `SERVICE_ROLE_KEY` aus `deploy/supabase/.env` uebernehmen.
Lokale Dienste:
- Supabase API Gateway: `http://localhost:8000`
- Supabase Studio: `http://localhost:8000/project/default`
- Supavisor Session Pooler: `localhost:5432`
- Supavisor Transaction Pooler: `localhost:6543`
Aktuelle Targets:
- `make test`: Go-Tests
@@ -31,6 +40,8 @@ Aktuelle Targets:
- `make frontend-build`: Frontend-Production-Build
- `make lint`: Go Vet und Frontend-ESLint
- `make verify`: Lint, Tests und Builds
- `make dev-down`: Supabase-Stack stoppen
- `make dev-logs`: Supabase-Logs verfolgen
- `make migrate`: Platzhalter bis E2-T01 `golang-migrate` einbindet
## Sicherheitsregeln