From 9c6a7c97e3f86afc4bd280b5c6d824fa0aa6b0ad Mon Sep 17 00:00:00 2001 From: Suika <2320837+Suika@users.noreply.github.com> Date: Thu, 3 Oct 2019 02:56:20 +0200 Subject: [PATCH] Add healthcheck --- docker/alpine/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker/alpine/Dockerfile b/docker/alpine/Dockerfile index 3456d6a5..dc6bebe8 100644 --- a/docker/alpine/Dockerfile +++ b/docker/alpine/Dockerfile @@ -20,3 +20,6 @@ ENV NODE_ENV=production COPY --from=0 /build/release /app RUN ln -s /app/data/config/config.json config.json VOLUME ["/app/data/config", "/app/data/db", "/app/data/images", "/app/data/TEMP"] +HEALTHCHECK --interval=15s --timeout=5s --retries=4 --start-period=30s \ + CMD wget --quiet --tries=1 --no-check-certificate --spider \ + http://localhost:80 || exit 1