From 30ed90f641c89d06ab21a0af37471d665c72d40c Mon Sep 17 00:00:00 2001 From: Peter Siegmund Date: Sun, 13 Oct 2024 00:34:54 +0200 Subject: [PATCH] add app.json Signed-off-by: Peter Siegmund --- app.json | 14 ++++++++++++++ src/main/resources/application.yaml | 7 +++++++ 2 files changed, 21 insertions(+) create mode 100644 app.json diff --git a/app.json b/app.json new file mode 100644 index 0000000..5b9927f --- /dev/null +++ b/app.json @@ -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 + } + ] + } +} diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index 931b367..2db7e6c 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -16,6 +16,12 @@ spring: application: name: timezone-service +management: + endpoint: + health: + probes: + enabled: true + eureka: client: register-with-eureka: true @@ -24,6 +30,7 @@ eureka: defaultZone: http://eureka-service.web:8761/eureka instance: instanceId: ${spring.application.name}:${spring.application.instance_id:${random.value}} + springdoc: swagger-ui: path: /swagger-ui.html