add composer-unused, comprehensive docs, and project restructure
- Add icanhazstring/composer-unused as dev dependency for dependency hygiene checks
- Add German documentation (docs/) covering architecture, conventions, workflows, and developer checklists
- Add API layer (ApiAuth, ApiBootstrap, ApiResponse), audit, scheduler, custom fields, and SSO services
- Add Microsoft OIDC SSO, API token management, and user lifecycle features
- Add swagger-ui vendor integration and OpenAPI spec
- Add production Docker setup and bin/ scripts
- Update composer dependencies, config, templates, and frontend assets throughout
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-22 15:27:35 +01:00
|
|
|
# Docker lokal
|
|
|
|
|
|
2026-04-02 10:49:35 +02:00
|
|
|
Letzte Aktualisierung: 2026-04-01
|
add composer-unused, comprehensive docs, and project restructure
- Add icanhazstring/composer-unused as dev dependency for dependency hygiene checks
- Add German documentation (docs/) covering architecture, conventions, workflows, and developer checklists
- Add API layer (ApiAuth, ApiBootstrap, ApiResponse), audit, scheduler, custom fields, and SSO services
- Add Microsoft OIDC SSO, API token management, and user lifecycle features
- Add swagger-ui vendor integration and OpenAPI spec
- Add production Docker setup and bin/ scripts
- Update composer dependencies, config, templates, and frontend assets throughout
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-22 15:27:35 +01:00
|
|
|
|
|
|
|
|
## Ziel
|
|
|
|
|
|
|
|
|
|
Diese Anleitung bringt die Anwendung lokal schnell und stabil zum Laufen.
|
|
|
|
|
|
|
|
|
|
## Voraussetzungen
|
|
|
|
|
|
|
|
|
|
- Docker Desktop (oder Docker Engine + Compose)
|
|
|
|
|
- Port `8080` (App) und `8081` (phpMyAdmin) sind frei
|
2026-04-26 09:50:40 +02:00
|
|
|
- Nginx-only Setup: `.htaccess` wird nicht ausgewertet
|
add composer-unused, comprehensive docs, and project restructure
- Add icanhazstring/composer-unused as dev dependency for dependency hygiene checks
- Add German documentation (docs/) covering architecture, conventions, workflows, and developer checklists
- Add API layer (ApiAuth, ApiBootstrap, ApiResponse), audit, scheduler, custom fields, and SSO services
- Add Microsoft OIDC SSO, API token management, and user lifecycle features
- Add swagger-ui vendor integration and OpenAPI spec
- Add production Docker setup and bin/ scripts
- Update composer dependencies, config, templates, and frontend assets throughout
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-22 15:27:35 +01:00
|
|
|
|
2026-04-02 10:49:35 +02:00
|
|
|
## Start in 5 Schritten
|
add composer-unused, comprehensive docs, and project restructure
- Add icanhazstring/composer-unused as dev dependency for dependency hygiene checks
- Add German documentation (docs/) covering architecture, conventions, workflows, and developer checklists
- Add API layer (ApiAuth, ApiBootstrap, ApiResponse), audit, scheduler, custom fields, and SSO services
- Add Microsoft OIDC SSO, API token management, and user lifecycle features
- Add swagger-ui vendor integration and OpenAPI spec
- Add production Docker setup and bin/ scripts
- Update composer dependencies, config, templates, and frontend assets throughout
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-22 15:27:35 +01:00
|
|
|
|
|
|
|
|
1. ENV-Datei anlegen:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
cp .env.example .env
|
|
|
|
|
```
|
|
|
|
|
|
2026-04-02 10:49:35 +02:00
|
|
|
2. Config-Template fuer den App-Bootstrap anlegen:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
cp config/config.php.example config/config.php
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
3. Container bauen und starten:
|
add composer-unused, comprehensive docs, and project restructure
- Add icanhazstring/composer-unused as dev dependency for dependency hygiene checks
- Add German documentation (docs/) covering architecture, conventions, workflows, and developer checklists
- Add API layer (ApiAuth, ApiBootstrap, ApiResponse), audit, scheduler, custom fields, and SSO services
- Add Microsoft OIDC SSO, API token management, and user lifecycle features
- Add swagger-ui vendor integration and OpenAPI spec
- Add production Docker setup and bin/ scripts
- Update composer dependencies, config, templates, and frontend assets throughout
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-22 15:27:35 +01:00
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
docker compose up --build -d
|
|
|
|
|
```
|
|
|
|
|
|
2026-04-02 10:49:35 +02:00
|
|
|
4. Anwendung öffnen:
|
add composer-unused, comprehensive docs, and project restructure
- Add icanhazstring/composer-unused as dev dependency for dependency hygiene checks
- Add German documentation (docs/) covering architecture, conventions, workflows, and developer checklists
- Add API layer (ApiAuth, ApiBootstrap, ApiResponse), audit, scheduler, custom fields, and SSO services
- Add Microsoft OIDC SSO, API token management, and user lifecycle features
- Add swagger-ui vendor integration and OpenAPI spec
- Add production Docker setup and bin/ scripts
- Update composer dependencies, config, templates, and frontend assets throughout
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-22 15:27:35 +01:00
|
|
|
- App: `http://localhost:8080`
|
|
|
|
|
- phpMyAdmin: `http://localhost:8081`
|
|
|
|
|
|
2026-04-02 10:49:35 +02:00
|
|
|
5. Logs prüfen (optional):
|
add composer-unused, comprehensive docs, and project restructure
- Add icanhazstring/composer-unused as dev dependency for dependency hygiene checks
- Add German documentation (docs/) covering architecture, conventions, workflows, and developer checklists
- Add API layer (ApiAuth, ApiBootstrap, ApiResponse), audit, scheduler, custom fields, and SSO services
- Add Microsoft OIDC SSO, API token management, and user lifecycle features
- Add swagger-ui vendor integration and OpenAPI spec
- Add production Docker setup and bin/ scripts
- Update composer dependencies, config, templates, and frontend assets throughout
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-22 15:27:35 +01:00
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
docker compose logs -f nginx php
|
|
|
|
|
```
|
|
|
|
|
|
2026-03-04 15:56:58 +01:00
|
|
|
## Security Header in Dev
|
|
|
|
|
|
|
|
|
|
Der lokale Nginx liefert bewusst dieselbe Security-Header-Baseline wie Produktion,
|
|
|
|
|
mit einer Ausnahme:
|
|
|
|
|
|
|
|
|
|
- Kein `Strict-Transport-Security` (HSTS) im Dev-HTTP-Setup.
|
|
|
|
|
|
|
|
|
|
Aktive Header in Dev:
|
|
|
|
|
|
|
|
|
|
- `X-Content-Type-Options: nosniff`
|
|
|
|
|
- `X-Frame-Options: SAMEORIGIN`
|
|
|
|
|
- `Referrer-Policy: strict-origin-when-cross-origin`
|
|
|
|
|
- `Permissions-Policy: camera=(), microphone=(), geolocation=(), payment=(), usb=()`
|
|
|
|
|
- `X-Permitted-Cross-Domain-Policies: none`
|
|
|
|
|
|
add composer-unused, comprehensive docs, and project restructure
- Add icanhazstring/composer-unused as dev dependency for dependency hygiene checks
- Add German documentation (docs/) covering architecture, conventions, workflows, and developer checklists
- Add API layer (ApiAuth, ApiBootstrap, ApiResponse), audit, scheduler, custom fields, and SSO services
- Add Microsoft OIDC SSO, API token management, and user lifecycle features
- Add swagger-ui vendor integration and OpenAPI spec
- Add production Docker setup and bin/ scripts
- Update composer dependencies, config, templates, and frontend assets throughout
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-22 15:27:35 +01:00
|
|
|
## Nützliche Befehle
|
|
|
|
|
|
|
|
|
|
Neustart:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
docker compose restart nginx php
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Stoppen:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
docker compose down
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Scheduler-Logs:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
docker compose logs -f scheduler
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Häufige lokale Probleme
|
|
|
|
|
|
|
|
|
|
- Änderungen werden nicht sichtbar:
|
|
|
|
|
- `docker compose restart nginx php`
|
|
|
|
|
- Datenbank startet nicht:
|
|
|
|
|
- DB-Container-Logs prüfen: `docker compose logs -f db`
|
|
|
|
|
- Port-Konflikt:
|
|
|
|
|
- in `docker-compose.yml` lokale Port-Mappings anpassen
|