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-03-06 12:25:18 +01:00
|
|
|
Letzte Aktualisierung: 2026-03-06
|
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
|
|
|
|
|
|
|
|
|
|
## Start in 4 Schritten
|
|
|
|
|
|
|
|
|
|
1. ENV-Datei anlegen:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
cp .env.example .env
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
2. Container bauen und starten:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
docker compose up --build -d
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
3. Anwendung öffnen:
|
|
|
|
|
- App: `http://localhost:8080`
|
|
|
|
|
- phpMyAdmin: `http://localhost:8081`
|
|
|
|
|
|
|
|
|
|
4. Logs prüfen (optional):
|
|
|
|
|
|
|
|
|
|
```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
|