From 7d9f8730e069b42ddbf7d46e8e406cdf97a52d0d Mon Sep 17 00:00:00 2001 From: Alan Grainger Date: Tue, 29 Oct 2024 11:33:32 +0100 Subject: [PATCH] Healthcheck --- docker-compose.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 4317265..39795b2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,4 +14,6 @@ services: command: "npm start" restart: always healthcheck: - disable: true + test: (ps ax | grep -q "[n]ode dist/index.js" && echo "Ok") || exit 1 + interval: 60s + start_period: 10s