From 34f61c0079730be6c8aa972df748e53ee81f8e62 Mon Sep 17 00:00:00 2001 From: Ali Mihandoost Date: Wed, 24 Jan 2024 19:13:51 +0330 Subject: [PATCH] fix(nginx): docker HEALTHCHECK --- packages/nginx/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/nginx/Dockerfile b/packages/nginx/Dockerfile index 7582a953..f6f48100 100644 --- a/packages/nginx/Dockerfile +++ b/packages/nginx/Dockerfile @@ -2,6 +2,8 @@ FROM ghcr.io/alwatr/nginx-json:2.4.1 LABEL org.opencontainers.image.base.name="ghcr.io/alwatr/nginx-json:2.4.1" +HEALTHCHECK --interval=30s --timeout=3s --start-period=1s --retries=3 CMD curl -fso /dev/null --header 'authorization: Alwatr healthcheck:healthcheck' http://localhost/server-info || exit 1 + RUN rm -fv /etc/nginx/templates/location.d/90-home-json.conf.template COPY etc/nginx/ /etc/nginx/ COPY default-data/ /default-data/