From 0d6333a069ff2b437a0dd6632f4eabe66c4a8510 Mon Sep 17 00:00:00 2001 From: Peter Siegmund Date: Sat, 12 Oct 2024 21:59:26 +0200 Subject: [PATCH] add readiness check for dokku Signed-off-by: Peter Siegmund --- app.json | 14 ++++++++++++++ src/main/resources/application.yaml | 6 ++++++ 2 files changed, 20 insertions(+) create mode 100644 app.json diff --git a/app.json b/app.json new file mode 100644 index 0000000..d59b1ad --- /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": 8761, + "attempts": 3 + } + ] + } +} diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index c52ae3a..7de9289 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -10,6 +10,12 @@ logging: com.netflix.eureka: OFF com.netflix.discovery: OFF +management: + endpoint: + health: + probes: + enabled: true + sentry: dsn: https://354321d371291036cffcdb5b1a72fd6e@o394865.ingest.us.sentry.io/4507718826262528 environment: eureka-service