feat: konsistente Consul-Discovery- und Healthcheck-Konfiguration für alle Dienste implementiert

Signed-off-by: StefanMoCoAt <stefan.mo.co@gmail.com>
This commit is contained in:
2026-04-16 19:34:24 +02:00
parent cfc412878f
commit dd76ad6d14
13 changed files with 126 additions and 20 deletions
@@ -8,12 +8,17 @@ spring:
driver-class-name: org.postgresql.Driver
cloud:
consul:
host: ${CONSUL_HOST:localhost}
port: ${CONSUL_PORT:8500}
host: ${SPRING_CLOUD_CONSUL_HOST:localhost}
port: ${SPRING_CLOUD_CONSUL_PORT:8500}
discovery:
enabled: true
register: true
prefer-ip-address: true
instance-id: ${spring.application.name}:${random.value}
health-check-path: /actuator/health
health-check-interval: 10s
health-check-port: ${server.port}
instance-id: ${spring.application.name}:${server.port}:${random.uuid}
service-name: ${spring.application.name}
server:
port: 8089