From 5bf8963f76336bb072df7cc873a857332967682f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20M=C3=BChlinghaus?= Date: Sat, 7 Feb 2026 20:46:28 +0100 Subject: [PATCH] =?UTF-8?q?Healthcheck=20f=C3=BCr=20die=20Website?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 3 ++- docker-compose.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index c5561d2..8e4f328 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,4 +5,5 @@ COPY hugo /src RUN hugo --minify FROM nginx:1.28.0-alpine-slim -COPY --from=builder /src/public /usr/share/nginx/html \ No newline at end of file +COPY --from=builder /src/public /usr/share/nginx/html +HEALTHCHECK --interval=1m --timeout=10s --start-period=10s CMD wget -q -O /dev/null http://localhost/ || exit 1 \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 185409e..aa67ad3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ services: website: build: . - image: alphabreed:v1.0.1 + image: alphabreed:v1.0.2 restart: unless-stopped networks: - frontend