add app.json

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2024-10-13 00:34:54 +02:00
parent 543d066a0d
commit 30ed90f641
2 changed files with 21 additions and 0 deletions

14
app.json Normal file
View File

@@ -0,0 +1,14 @@
{
"healthchecks": {
"web": [
{
"type": "readiness",
"name": "web check",
"description": "Checking if the app responds to the /actuator/health/readiness endpoint",
"path": "/actuator/health/readiness",
"port": 8080,
"attempts": 3
}
]
}
}

View File

@@ -16,6 +16,12 @@ spring:
application: application:
name: timezone-service name: timezone-service
management:
endpoint:
health:
probes:
enabled: true
eureka: eureka:
client: client:
register-with-eureka: true register-with-eureka: true
@@ -24,6 +30,7 @@ eureka:
defaultZone: http://eureka-service.web:8761/eureka defaultZone: http://eureka-service.web:8761/eureka
instance: instance:
instanceId: ${spring.application.name}:${spring.application.instance_id:${random.value}} instanceId: ${spring.application.name}:${spring.application.instance_id:${random.value}}
springdoc: springdoc:
swagger-ui: swagger-ui:
path: /swagger-ui.html path: /swagger-ui.html