From 9cb71f0ea36959cf7b33fcc8db25adb6127d0c94 Mon Sep 17 00:00:00 2001 From: Iain Sproat <68657+iainsproat@users.noreply.github.com> Date: Mon, 24 Jul 2023 11:17:53 +0100 Subject: [PATCH] fix(docker compose): increase healthcheck start period (#1721) - the healthcheck was commencing before the server had started - this resulted in the server being incorrectly labelled unhealthy prior to it having had sufficient time to start - the server was being restarted as a result of this incorrect diagnosis by the healthcheck, resulting in an infinite start->unhealthy->restart cycle --- docker-compose-speckle.yml | 2 +- utils/1click_image_scripts/template-docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose-speckle.yml b/docker-compose-speckle.yml index 268403dde..291863c50 100644 --- a/docker-compose-speckle.yml +++ b/docker-compose-speckle.yml @@ -26,7 +26,7 @@ services: interval: 10s timeout: 10s retries: 3 - start_period: 5s + start_period: 90s environment: # TODO: Change this to the URL of the speckle server, as accessed from the network CANONICAL_URL: 'http://localhost' diff --git a/utils/1click_image_scripts/template-docker-compose.yml b/utils/1click_image_scripts/template-docker-compose.yml index 27852137d..917cd07dd 100644 --- a/utils/1click_image_scripts/template-docker-compose.yml +++ b/utils/1click_image_scripts/template-docker-compose.yml @@ -56,7 +56,7 @@ services: interval: 10s timeout: 10s retries: 3 - start_period: 5s + start_period: 90s ports: - '127.0.0.1:3000:3000' environment: