diff options
| author | Marcel <34819524+MarcelCoding@users.noreply.github.com> | 2021-10-09 08:21:01 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-09 08:25:22 +0000 |
| commit | fe461ff66bd69997014fe190745e44e7696d0167 (patch) | |
| tree | 047ddc0cc945c23b4fd0b777c504e20486d7249c /Dockerfile.arm64 | |
| parent | 1bfe6342df2fe7c094a31737bba511f9dfd44d71 (diff) | |
Added Docker Healthcheck
Diffstat (limited to 'Dockerfile.arm64')
| -rw-r--r-- | Dockerfile.arm64 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Dockerfile.arm64 b/Dockerfile.arm64 index 4ae98de32..6ac91ce73 100644 --- a/Dockerfile.arm64 +++ b/Dockerfile.arm64 @@ -24,6 +24,8 @@ ARG APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=DontWarn ENV NVIDIA_DRIVER_CAPABILITIES="compute,video,utility" COPY --from=qemu /usr/bin/qemu-aarch64-static /usr/bin + +# curl: healcheck RUN apt-get update && apt-get install --no-install-recommends --no-install-suggests -y \ ffmpeg \ libssl-dev \ @@ -33,6 +35,7 @@ RUN apt-get update && apt-get install --no-install-recommends --no-install-sugge libomxil-bellagio0 \ libomxil-bellagio-bin \ locales \ + curl \ && apt-get clean autoclean -y \ && apt-get autoremove -y \ && rm -rf /var/lib/apt/lists/* \ @@ -65,3 +68,8 @@ ENTRYPOINT ["./jellyfin/jellyfin", \ "--datadir", "/config", \ "--cachedir", "/cache", \ "--ffmpeg", "/usr/bin/ffmpeg"] + +HEALTHCHECK --interval=30s --timeout=30s --start-period=10s --retries=3 \ + # https://github.com/jellyfin/jellyfin/issues/5760#issuecomment-852297561 + CMD curl http://localhost:$(grep -oP '(?<=PublicPort>)[^<]+' /config/config/network.xml)/$(grep -oP '(?<=BaseUrl>)[^<]+' /config/config/network.xml)health \ + || exit 1 |
