Fix(infra):

Datei: .junie/guidelines/technology-guides/docker/docker-development.md

Vorher:
- 194 Zeilen
- last_updated: 2025-09-15
- ~10 dokumentierte Befehle
- Falsche Befehlsnamen (service-build statt build-service)
- Falscher Port (8080 statt 8081)

Nachher:
- 756 Zeilen
- last_updated: 2025-11-11
- ~50+ dokumentierte Befehle
- Korrekte Befehlsnamen
- Korrekte Ports

Neue Sektionen:
24
Haupt-Sektionen gefunden

Korrigierte Dateien (API Gateway Port 8080 -> 8081):

1. infrastructure/gateway/README-INFRA-GATEWAY.md
   - 6 Stellen korrigiert (Docker-Befehle, Kubernetes, curl)

2. infrastructure/gateway/src/main/resources/openapi/documentation.yaml
   - 1 Server-URL korrigiert

3. infrastructure/README-INFRASTRUCTURE.md
   - 4 Stellen korrigiert (Prometheus, Kubernetes, curl)

4. services/masterdata/README-MASTERDATA.md
   - 3 curl Befehle korrigiert

5. .junie/guidelines/technology-guides/docker/docker-production.md
   - 1 Nginx upstream korrigiert

6. .junie/guidelines/technology-guides/docker/docker-monitoring.md
   - 1 Prometheus target korrigiert

NICHT korrigiert (korrekt auf Port 8080):
- Keycloak Health-Check (intern 8080, extern 8180)
- Test-Konfigurationen mit Keycloak issuer-uri
- Generische SERVICE_PORT Beispiele

Gesamt: 16 Korrekturen in 6 Dateien
This commit is contained in:
2025-11-11 22:52:48 +01:00
parent 02904fa345
commit 8e932758a7
22 changed files with 1780 additions and 206 deletions
+4 -4
View File
@@ -378,7 +378,7 @@ scrape_configs:
- 'members-service:8082'
- 'horses-service:8083'
- 'events-service:8084'
- 'gateway:8080'
- 'gateway:8081'
```
### Grafana Dashboards
@@ -430,7 +430,7 @@ spec:
- name: gateway
image: meldestelle/api-gateway:latest
ports:
- containerPort: 8080
- containerPort: 8081
env:
- name: REDIS_HOST
value: "redis-service"
@@ -535,10 +535,10 @@ kafka-consumer-groups --bootstrap-server localhost:9092 --describe --group melde
```bash
# Gateway Health Check
curl http://localhost:8080/actuator/health
curl http://localhost:8081/actuator/health
# Route Configuration prüfen
curl http://localhost:8080/actuator/gateway/routes
curl http://localhost:8081/actuator/gateway/routes
```
## Best Practices
@@ -279,7 +279,7 @@ cd /home/stefan/WsMeldestelle/Meldestelle
# Mit Docker
docker build -t meldestelle/gateway:latest -f infrastructure/gateway/Dockerfile .
docker run -p 8080:8080 meldestelle/gateway:latest
docker run -p 8081:8081 meldestelle/gateway:latest
```
📖 **Detaillierte Startup-Anleitung:** Siehe `GATEWAY-STARTUP-GUIDE.md` im Projekt-Root für vollständige Befehle und Fehlerbehebung.
@@ -324,7 +324,7 @@ docker build -t meldestelle/gateway:1.0.0 \
# Container starten
docker run -d \
--name gateway \
-p 8080:8080 \
-p 8081:8081 \
-e SPRING_PROFILES_ACTIVE=prod \
-e CONSUL_HOST=consul \
meldestelle/gateway:1.0.0
@@ -348,11 +348,11 @@ spec:
- name: gateway
image: meldestelle/gateway:1.0.0
ports:
- containerPort: 8080
- containerPort: 8081
livenessProbe:
httpGet:
path: /actuator/health
port: 8080
port: 8081
initialDelaySeconds: 90
periodSeconds: 30
```
@@ -394,10 +394,10 @@ spec:
docker logs gateway | grep "correlationId"
# Circuit Breaker Status
curl http://localhost:8080/actuator/circuitbreakers
curl http://localhost:8081/actuator/circuitbreakers
# Health Details
curl http://localhost:8080/actuator/health
curl http://localhost:8081/actuator/health
```
## Zukünftige Erweiterungen
@@ -11,16 +11,16 @@ spring:
resourceserver:
jwt:
# Issuer URI for JWT validation - Docker internal: keycloak:8080, External: localhost:8180
issuer-uri: ${KEYCLOAK_ISSUER_URI:http://keycloak:8080/realms/meldestelle}
issuer-uri: ${KEYCLOAK_ISSUER_URI:http://keycloak:8180/realms/meldestelle}
# JWK Set URI for fetching public keys to validate JWT signatures
jwk-set-uri: ${KEYCLOAK_JWK_SET_URI:http://keycloak:8080/realms/meldestelle/protocol/openid-connect/certs}
jwk-set-uri: ${KEYCLOAK_JWK_SET_URI:http://keycloak:8180/realms/meldestelle/protocol/openid-connect/certs}
# Keycloak-spezifische Konfiguration
keycloak:
# Internal Docker service name, external via port 8180
server-url: ${KEYCLOAK_SERVER_URL:http://keycloak:8080}
issuer-uri: ${KEYCLOAK_ISSUER_URI:http://keycloak:8080/realms/meldestelle}
jwk-set-uri: ${KEYCLOAK_JWK_SET_URI:http://keycloak:8080/realms/meldestelle/protocol/openid-connect/certs}
server-url: ${KEYCLOAK_SERVER_URL:http://keycloak:8180}
issuer-uri: ${KEYCLOAK_ISSUER_URI:http://keycloak:8180/realms/meldestelle}
jwk-set-uri: ${KEYCLOAK_JWK_SET_URI:http://keycloak:8180/realms/meldestelle/protocol/openid-connect/certs}
realm: ${KEYCLOAK_REALM:meldestelle}
resource: ${KEYCLOAK_CLIENT_ID:api-gateway}
client-id: ${KEYCLOAK_CLIENT_ID:api-gateway}
@@ -239,7 +239,7 @@ management:
zipkin:
tracing:
endpoint: ${ZIPKIN_TRACING_ENDPOINT:http://localhost:9411/api/v2/spans}
# Reduziert Verbindungsfehler wenn Zipkin nicht verfügbar ist
# Reduziert Verbindungsfehler, wenn Zipkin nicht verfügbar ist
connect-timeout: 1s
read-timeout: 10s
@@ -55,7 +55,7 @@ servers:
description: Production Server
- url: https://staging-api.meldestelle.at
description: Staging Server
- url: http://localhost:8080
- url: http://localhost:8081
description: Local Development Server
tags: