From 7dae5279fbcbb492fd1fd3664b0b45edcb54fe27 Mon Sep 17 00:00:00 2001 From: Niyas Date: Sat, 17 Jul 2021 20:08:01 +0530 Subject: [PATCH] Docker healthcheck Copied from https://scoutapm.com/blog/how-to-use-docker-healthcheck --- dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/dockerfile b/dockerfile index 0388d4bcb..923d8b10a 100644 --- a/dockerfile +++ b/dockerfile @@ -31,6 +31,7 @@ RUN npm run build EXPOSE 3001 VOLUME ["/app/data"] +HEALTHCHECK --interval=5s --timeout=3s --start-period=30s CMD node extra/healthcheck.js CMD ["npm", "run", "start-server"] FROM release AS nightly