From 0d5c6ad614ec622c42e8e1110ce3fde882fb7f96 Mon Sep 17 00:00:00 2001 From: brooke Date: Thu, 19 Jun 2025 16:36:26 -0400 Subject: [PATCH] add proper healthcheck to liberaforms container --- compose.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/compose.yml b/compose.yml index bf2e33e..c8656ea 100644 --- a/compose.yml +++ b/compose.yml @@ -40,6 +40,12 @@ services: target: /custom-entrypoint.sh entrypoint: /custom-entrypoint.sh command: "/usr/bin/supervisord -n" + healthcheck: + test: ["CMD", "python", "-c", "import requests; print(requests.get('http://localhost:5000/').status_code)"] + timeout: 45s + interval: 10s + retries: 10 + start_period: 1m environment: - ENABLE_LDAP=False - FLASK_DEBUG=False