Skip to content

Commit

Permalink
Add 'start_interval' to Healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
dvallant authored and gesellix committed Feb 4, 2024
1 parent 4101b0a commit 729ba3d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@ data class Healthcheck(
var test: Command = Command(),
var timeout: String? = null,
@Json(name = "start_period")
var startPeriod: String? = null
var startPeriod: String? = null,
@Json(name = "start_interval")
var startInterval: String? = null
)
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,8 @@ fun newSampleConfigFull(): ComposeConfig {
retries = 5f,
test = Command(parts = arrayListOf("echo \"hello world\"")),
timeout = "1s",
startPeriod = "1s"
startPeriod = "1s",
startInterval = "500ms"
),
hostname = "foo",
image = "redis",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ services:
timeout: 1s
retries: 5
start_period: 1s
start_interval: 500ms

# Any valid image reference - repo, tag, id, sha
image: redis
Expand Down

0 comments on commit 729ba3d

Please sign in to comment.