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:
@@ -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
|
||||
Reference in New Issue
Block a user