From 05dbb1c160021ccb03487536d336ad9b48be0e08 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Wed, 17 Feb 2021 18:24:38 -0500 Subject: [PATCH] add healthcheck to dockerfile --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 26dd42bf..a31d36a0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -117,5 +117,8 @@ RUN /app/bin/docker_entrypoint.sh archivebox version VOLUME "$DATA_DIR" EXPOSE 8000 +HEALTHCHECK --interval=30s --timeout=20s --retries=15 \ + CMD curl --silent 'http://localhost:8000/admin/login/' || exit 1 + ENTRYPOINT ["dumb-init", "--", "/app/bin/docker_entrypoint.sh"] CMD ["archivebox", "server", "0.0.0.0:8000"]