From 6f50690fe581f214f2a35d52a5a51a93b0be9f89 Mon Sep 17 00:00:00 2001 From: Marcello Lamonaca Date: Mon, 10 Jul 2023 11:37:55 +0200 Subject: [PATCH] feat(docker): add compose health checks notes --- docs/containers/docker.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/containers/docker.md b/docs/containers/docker.md index 51b6258..0f40f89 100644 --- a/docs/containers/docker.md +++ b/docs/containers/docker.md @@ -299,7 +299,7 @@ services: dockerfile: <*.Dockerfile> args: # pass args to dockerfile ARG: - - ARG= + - ARG= ports: - : networks: # attach container to one or more networks @@ -310,10 +310,18 @@ services: ENV_VAR: - ENV_VAR= env_file: - - # reusable env file + - # reusable env file volumes: - "./:" # service-dedicated volume - ":" # reuseable volume + healthcheck: + disable: # set to true to disable + test: curl -f http://localhost # set to ["NONE"] to disable + interval: # interval between checks (default 30s) + timeout: # check fail timeout (default 30s) + retries: # num of retries before unhealty (default 3) + start_period: # container init grace pediod (default 5s) + start_interval: # check interval in start period # reusable volume definitions volumes: