Add startup fix for scheduling-service: configure application.yml, set service port to 8089, include spring-boot-starter-actuator for health checks, and document changes.

This commit is contained in:
2026-04-13 23:25:24 +02:00
parent d4509d6c5a
commit 2ee9ccf8e9
3 changed files with 46 additions and 0 deletions
@@ -21,6 +21,7 @@ dependencies {
implementation(libs.bundles.jackson.kotlin)
implementation(libs.kotlin.reflect)
implementation(libs.spring.cloud.starter.consul.discovery)
implementation(libs.spring.boot.starter.actuator)
implementation(libs.caffeine)
implementation(libs.spring.web)
implementation(libs.bundles.resilience)
@@ -0,0 +1,28 @@
spring:
application:
name: scheduling-service
datasource:
url: jdbc:postgresql://${DB_HOST:localhost}:${DB_PORT:5432}/${DB_NAME:pg-meldestelle-db}
username: ${DB_USER:pg-user}
password: ${DB_PASS:pg-pass}
driver-class-name: org.postgresql.Driver
cloud:
consul:
host: ${CONSUL_HOST:localhost}
port: ${CONSUL_PORT:8500}
discovery:
prefer-ip-address: true
instance-id: ${spring.application.name}:${random.value}
health-check-path: /actuator/health
server:
port: 8089
management:
endpoints:
web:
exposure:
include: "*"
endpoint:
health:
show-details: always