From 6dce82c3afdd84d25265ef5f7ea9a3a8d9ea2b8b Mon Sep 17 00:00:00 2001 From: Victor Valle Date: Tue, 21 Nov 2023 06:01:03 -0800 Subject: [PATCH] fix(healthcheck): extend start_period to 2m to clarify initialization grace period Revised the start_period in the Docker healthcheck example to 2 minutes, to avoid confusion about the property's role. This change highlights the intended use of start_period as a grace period for container initialization. By setting start_period to a duration longer than the interval (1 minute and 30 seconds), it becomes clearer that health check failures during this initial period will not count towards the retries limit. --- content/compose/compose-file/compose-file-v3.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/compose/compose-file/compose-file-v3.md b/content/compose/compose-file/compose-file-v3.md index 77ebb72697..928a910ed7 100644 --- a/content/compose/compose-file/compose-file-v3.md +++ b/content/compose/compose-file/compose-file-v3.md @@ -1252,7 +1252,7 @@ healthcheck: interval: 1m30s timeout: 10s retries: 3 - start_period: 40s + start_period: 2m ``` `interval`, `timeout` and `start_period` are specified as