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