From 81a5f1560084c5df3c84c1a0f9ada2e7abae1362 Mon Sep 17 00:00:00 2001 From: Simon Date: Sat, 7 Oct 2023 09:49:51 +0700 Subject: [PATCH] add health check example --- docker-compose.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index e309f36..c939085 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,6 +20,12 @@ services: - TA_PASSWORD=verysecret # your initial TA credentials - ELASTIC_PASSWORD=verysecret # set password for Elasticsearch - TZ=America/New_York # set your time zone + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:8000/health"] + interval: 2m + timeout: 10s + retries: 3 + start_period: 30s depends_on: - archivist-es - archivist-redis