diff --git a/dc-backend.yaml b/dc-backend.yaml index 5d54868a..71a52cc8 100644 --- a/dc-backend.yaml +++ b/dc-backend.yaml @@ -64,7 +64,7 @@ services: postgres: condition: "service_healthy" keycloak: - condition: "service_started" + condition: "service_healthy" consul: condition: "service_healthy" valkey: @@ -72,6 +72,13 @@ services: zipkin: condition: "service_started" + healthcheck: + test: [ "CMD", "wget", "--spider", "-q", "http://localhost:8081/actuator/health/readiness" ] + interval: 15s + timeout: 5s + retries: 5 + start_period: 40s + networks: meldestelle-network: aliases: @@ -132,7 +139,7 @@ services: postgres: condition: "service_healthy" keycloak: - condition: "service_started" + condition: "service_healthy" consul: condition: "service_healthy" valkey: @@ -140,6 +147,13 @@ services: zipkin: condition: "service_started" + healthcheck: + test: [ "CMD", "wget", "--spider", "-q", "http://localhost:8082/actuator/health/readiness" ] + interval: 15s + timeout: 5s + retries: 5 + start_period: 40s + networks: meldestelle-network: aliases: diff --git a/dc-gui.yaml b/dc-gui.yaml index 7d0df83f..5ec250bc 100644 --- a/dc-gui.yaml +++ b/dc-gui.yaml @@ -32,6 +32,12 @@ services: depends_on: api-gateway: condition: "service_started" + healthcheck: + test: [ "CMD", "wget", "--spider", "-q", "http://localhost:4000/" ] + interval: 20s + timeout: 5s + retries: 5 + start_period: 20s networks: meldestelle-network: aliases: diff --git a/dc-infra.yaml b/dc-infra.yaml index 80485b89..7c286054 100644 --- a/dc-infra.yaml +++ b/dc-infra.yaml @@ -159,6 +159,12 @@ services: - "${ZIPKIN_PORT:-9411:9411}" networks: meldestelle-network: + healthcheck: + test: [ "CMD", "wget", "--spider", "-q", "http://localhost:9411/health" ] + interval: 20s + timeout: 5s + retries: 5 + start_period: 20s volumes: postgres-data: diff --git a/docs/04_Agents/Roadmaps/DevOps_Roadmap.md b/docs/04_Agents/Roadmaps/DevOps_Roadmap.md index a3f47d11..18e719a2 100644 --- a/docs/04_Agents/Roadmaps/DevOps_Roadmap.md +++ b/docs/04_Agents/Roadmaps/DevOps_Roadmap.md @@ -7,10 +7,18 @@ ## 🔴 Sprint A — Sofort (diese Woche) -- [ ] **A-1** | Docker-Compose-Setup auf aktuellen Stand bringen - - [ ] Alle Services (Backend, DB, Infra) in `docker-compose.yaml` / `dc-*.yaml` prüfen - - [ ] Sicherstellen: Lokale Entwicklungsumgebung startet mit einem einzigen Befehl - - [ ] Healthchecks für alle Services definieren +- [x] **A-1** | Docker-Compose-Setup auf aktuellen Stand bringen + - [x] Alle Services (Backend, DB, Infra) in `docker-compose.yaml` / `dc-*.yaml` prüfen + - [x] Sicherstellen: Lokale Entwicklungsumgebung startet mit einem einzigen Befehl + - [x] Healthchecks für alle Services definieren + + Hinweise: + - Ein-Kommando-Start (alle Profile): + ```bash + docker compose --profile all up -d + ``` + - Healthchecks ergänzt für: `api-gateway`, `ping-service`, `web-app`, `zipkin`. + - `depends_on` vereinheitlicht: Keycloak wird von Backend-Services mit `service_healthy` abgewartet. ---