From 24f4fb141e6816cda317eb91c5b0b2dffa760123 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 24 Aug 2020 14:39:36 +0100 Subject: [PATCH] updated README about healthcheck in docker-compose --- docker/README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker/README.md b/docker/README.md index fc129650c1e3..264d24167823 100644 --- a/docker/README.md +++ b/docker/README.md @@ -181,9 +181,12 @@ If you wish to point the healthcheck at a different port with docker command, ad ## Setting the healthcheck in docker-compose file -You can add the following to set a custom healthcheck in a docker compose file. +You can add the following to set a custom healthcheck in a docker compose file. You'll need version >2.1 for this to work. ``` healthcheck: test: ["CMD", "curl", "-fSs", "http://localhost:8008/health"] + interval: 1m + timeout: 10s + retries: 3 ```