From 0b138a53155a92b728c5270ede2c86cbc35fb273 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Klintrup?= Date: Wed, 29 Jul 2026 01:55:02 +0200 Subject: [PATCH 1/3] feat: Add healthcheck to Dockerfile and Dockerfile.aarch64 --- Dockerfile | 7 +++++++ Dockerfile.aarch64 | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/Dockerfile b/Dockerfile index 973484f9..baa19677 100644 --- a/Dockerfile +++ b/Dockerfile @@ -48,3 +48,10 @@ COPY root/ / EXPOSE 8989 VOLUME /config + +HEALTHCHECK \ + --interval=30s \ + --timeout=10s \ + --start-period=60s \ + --retries=3 \ + CMD ["curl", "--fail", "--silent", "--show-error", "--connect-timeout", "2", "--max-time", "5", "http://127.0.0.1:8989/ping"] diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 index 0e641109..af475985 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -48,3 +48,10 @@ COPY root/ / EXPOSE 8989 VOLUME /config + +HEALTHCHECK \ + --interval=30s \ + --timeout=10s \ + --start-period=60s \ + --retries=3 \ + CMD ["curl", "--fail", "--silent", "--show-error", "--connect-timeout", "2", "--max-time", "5", "http://127.0.0.1:8989/ping"] From 25547ce2a43d9df8d0d1b4bac4311d02bd80829e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Klintrup?= Date: Wed, 29 Jul 2026 01:59:40 +0200 Subject: [PATCH 2/3] feat: Update changelog --- readme-vars.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/readme-vars.yml b/readme-vars.yml index 54ddf677..107813c7 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -79,6 +79,7 @@ init_diagram: | "sonarr:latest" <- Base Images # changelog changelogs: + - {date: "29.07.26:", desc: "Add healthcheck."} - {date: "09.07.26:", desc: "Workaround malformed ncurses database."} - {date: "04.07.26:", desc: "Rebase to Alpine 3.24."} - {date: "15.01.26:", desc: "Rebase to Alpine 3.23."} From 445ead77a64223f9ec98d842ea7532f94acd4982 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Klintrup?= Date: Wed, 29 Jul 2026 02:11:45 +0200 Subject: [PATCH 3/3] fix: read configfile to populate urlbase --- Dockerfile | 5 ++++- Dockerfile.aarch64 | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index baa19677..b81f2209 100644 --- a/Dockerfile +++ b/Dockerfile @@ -54,4 +54,7 @@ HEALTHCHECK \ --timeout=10s \ --start-period=60s \ --retries=3 \ - CMD ["curl", "--fail", "--silent", "--show-error", "--connect-timeout", "2", "--max-time", "5", "http://127.0.0.1:8989/ping"] + CMD curl --fail --silent --show-error \ + --connect-timeout 2 \ + --max-time 5 \ + "http://127.0.0.1:8989$(awk -F'[<>]' '$2 == "UrlBase" { print $3; exit }' /config/config.xml)/ping" diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 index af475985..26e42ccc 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -54,4 +54,7 @@ HEALTHCHECK \ --timeout=10s \ --start-period=60s \ --retries=3 \ - CMD ["curl", "--fail", "--silent", "--show-error", "--connect-timeout", "2", "--max-time", "5", "http://127.0.0.1:8989/ping"] + CMD curl --fail --silent --show-error \ + --connect-timeout 2 \ + --max-time 5 \ + "http://127.0.0.1:8989$(awk -F'[<>]' '$2 == "UrlBase" { print $3; exit }' /config/config.xml)/ping"