Some checks failed
- Update all GitHub Actions to v3 for Gitea compatibility - Fix artifact upload/download actions (v4 -> v3) - Remove GitHub-specific features (GITHUB_STEP_SUMMARY) - Add complete Docker Compose configuration with PostgreSQL and Redis - Add environment secrets support for all workflows - Add debug workflow for secrets verification - Add comprehensive documentation for secrets setup - Improve container networking and health checks
56 lines
1.9 KiB
Markdown
56 lines
1.9 KiB
Markdown
# Gitea Secrets Setup
|
|
|
|
Um die GitHub Actions Workflows korrekt zu verwenden, müssen die folgenden Secrets in deinem Gitea Repository konfiguriert werden:
|
|
|
|
## Secrets konfigurieren
|
|
|
|
1. Gehe zu deinem Repository in Gitea
|
|
2. Klicke auf **Settings** → **Secrets**
|
|
3. Füge die folgenden Secrets hinzu:
|
|
|
|
### Erforderliche Secrets:
|
|
|
|
| Secret Name | Beschreibung | Beispiel |
|
|
|-------------|--------------|----------|
|
|
| `NEXT_PUBLIC_BASE_URL` | Die öffentliche URL deiner Website | `https://dk0.dev` |
|
|
| `MY_EMAIL` | Haupt-Email-Adresse für Kontaktformular | `contact@dk0.dev` |
|
|
| `MY_INFO_EMAIL` | Info-Email-Adresse | `info@dk0.dev` |
|
|
| `MY_PASSWORD` | Passwort für Haupt-Email | `dein_email_passwort` |
|
|
| `MY_INFO_PASSWORD` | Passwort für Info-Email | `dein_info_email_passwort` |
|
|
| `ADMIN_BASIC_AUTH` | Admin-Basic-Auth für geschützte Bereiche | `admin:dein_sicheres_passwort` |
|
|
|
|
## Docker Compose Setup
|
|
|
|
Die Workflows verwenden jetzt `docker-compose.workflow.yml` für eine vollständige Service-Konfiguration:
|
|
|
|
- **PostgreSQL**: Datenbank für die Anwendung
|
|
- **Redis**: Caching und Session-Management
|
|
- **Portfolio App**: Die Hauptanwendung
|
|
|
|
## Netzwerk-Konfiguration
|
|
|
|
Die Services sind im `portfolio_net` Netzwerk konfiguriert, damit sie miteinander kommunizieren können.
|
|
|
|
## Health Checks
|
|
|
|
Alle Services haben Health Checks konfiguriert:
|
|
- PostgreSQL: `pg_isready`
|
|
- Redis: `redis-cli ping`
|
|
- Portfolio App: HTTP Health Check auf `/api/health`
|
|
|
|
## Troubleshooting
|
|
|
|
Falls die Workflows fehlschlagen:
|
|
|
|
1. **Secrets prüfen**: Stelle sicher, dass alle Secrets korrekt konfiguriert sind
|
|
2. **Netzwerk prüfen**: Überprüfe, ob das `portfolio_net` Netzwerk existiert
|
|
3. **Ports prüfen**: Stelle sicher, dass Port 3000 frei ist
|
|
4. **Logs prüfen**: Schaue in die Container-Logs für Fehlermeldungen
|
|
|
|
```bash
|
|
# Container-Logs anzeigen
|
|
docker-compose -f docker-compose.workflow.yml logs
|
|
|
|
# Services-Status prüfen
|
|
docker-compose -f docker-compose.workflow.yml ps
|
|
``` |