add health check on /healthcheck

This commit is contained in:
wizzdom 2023-10-11 01:14:58 +01:00
parent 2a7d91e333
commit e5ffb4033c

View file

@ -15,6 +15,12 @@ job "nova-timetable" {
service { service {
port = "http" port = "http"
name = "nova-timetable" name = "nova-timetable"
check {
type = "http"
path = "/healthcheck"
interval = "10s"
timeout = "2s"
}
tags = [ tags = [
"traefik.enable=true", "traefik.enable=true",