Use check_settings
This commit is contained in:
@ -48,6 +48,11 @@ job "miniflux" {
|
||||
}
|
||||
}
|
||||
sidecar_task {
|
||||
|
||||
logs {
|
||||
disabled = false
|
||||
}
|
||||
|
||||
config {
|
||||
args = [
|
||||
"-c",
|
||||
|
@ -24,9 +24,7 @@ job "[[ .instance ]]" {
|
||||
type = "http"
|
||||
path = "/healthcheck"
|
||||
expose = true
|
||||
interval = "[[ $c.consul.check.interval ]]"
|
||||
timeout = "[[ $c.consul.check.timeout ]]"
|
||||
|
||||
[[ template "common/check_settings" $c ]]
|
||||
check_restart {
|
||||
limit = 20
|
||||
grace = "20s"
|
||||
|
Reference in New Issue
Block a user