From e09e8b7002ecbd7cf4f09f9f0e004210d10355dc Mon Sep 17 00:00:00 2001 From: Arnaud_Cayrol Date: Sun, 15 Feb 2026 21:51:25 +0100 Subject: [PATCH] Add basic healthcheck to dockerfile --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 96eae79..9de881b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -69,4 +69,6 @@ RUN useradd --create-home --shell /bin/bash timelapse && \ USER timelapse EXPOSE 5000 +HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \ + CMD wget -qO- http://localhost:5000/api/health || exit 1 CMD ["./immich-timelapse"]