Bilder von Hand sortieren
This commit is contained in:
16
README.md
16
README.md
@@ -6,10 +6,10 @@ Dieses Repository enthält zwei Welten: den modernen Node.js / React Stack sowie
|
||||
|
||||
| Service | Profil | Port Host -> Container | Beschreibung |
|
||||
|--------------|-----------|------------------------|--------------|
|
||||
| mysql | default | 3307 -> 3306 | MySQL 8 Datenbank |
|
||||
| backend | default | 3001 -> 3001 | Node.js API (Express + Prisma) |
|
||||
| frontend | default | 3000 -> 80 | React Build via nginx |
|
||||
| phpmyadmin | admin | 8083 -> 80 | DB Verwaltung |
|
||||
| mysql | (auto) | 3307 -> 3306 | MySQL 8 Datenbank |
|
||||
| backend | (auto) | 3001 -> 3001 | Node.js API (Express + Prisma) |
|
||||
| frontend | (auto) | 3000 -> 80 | React Build via nginx |
|
||||
| phpmyadmin | admin | 8083 -> 80 | DB Verwaltung (optional) |
|
||||
|
||||
## Node / Modern Stack
|
||||
Empfohlene Node Version: **22.12.0** (`.nvmrc`, `.tool-versions`).
|
||||
@@ -59,11 +59,11 @@ docker compose logs -f mysql
|
||||
```
|
||||
|
||||
## CORS Hinweis
|
||||
Aktuell ist `CORS_ORIGIN="*"` (Testphase). Für Produktion einschränken, z.B.:
|
||||
```yaml
|
||||
CORS_ORIGIN: http://esprimo:3000,http://localhost:3000
|
||||
Das Backend akzeptiert nur Ursprünge aus `CORS_ORIGIN` (kommagetrennt). In Produktion wird ein Wildcard `*` geblockt, außer du setzt bewusst `ALLOW_INSECURE_CORS=1` (nicht empfohlen). Beispiel:
|
||||
```env
|
||||
CORS_ORIGIN=http://esprimo:3000,http://localhost:3000
|
||||
```
|
||||
Danach Backend neu bauen.
|
||||
Nach Änderung Backend neu bauen / starten.
|
||||
|
||||
## Datenbankzugang
|
||||
|
||||
|
||||
Reference in New Issue
Block a user