Skip to content

Commit ca16e37

Browse files
committed
feat: add health check support
1 parent 620e18b commit ca16e37

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

Containerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ FROM ghcr.io/daemonless/base:${BASE_VERSION}
44
ARG FREEBSD_ARCH=amd64
55
ARG UPSTREAM_URL="https://plex.tv/api/downloads/5.json"
66
ARG UPSTREAM_JQ=".computer.FreeBSD.version"
7+
ARG HEALTHCHECK_ENDPOINT="http://localhost:32400/identity"
8+
9+
ENV HEALTHCHECK_URL="${HEALTHCHECK_ENDPOINT}"
710

811
LABEL org.opencontainers.image.title="Plex Media Server" \
912
org.opencontainers.image.description="Plex Media Server on FreeBSD" \
@@ -17,7 +20,8 @@ LABEL org.opencontainers.image.title="Plex Media Server" \
1720
io.daemonless.arch="${FREEBSD_ARCH}" \
1821
io.daemonless.category="Media Servers" \
1922
io.daemonless.upstream-url="${UPSTREAM_URL}" \
20-
io.daemonless.upstream-jq="${UPSTREAM_JQ}"
23+
io.daemonless.upstream-jq="${UPSTREAM_JQ}" \
24+
io.daemonless.healthcheck-url="${HEALTHCHECK_ENDPOINT}"
2125

2226
# VERSION options:
2327
# container - use baked version, no updates (default)
@@ -44,7 +48,7 @@ RUN PLEX_URL="https://plex.tv/downloads/latest/1?channel=16&build=freebsd-x86_64
4448
COPY root/ /
4549

4650
# Make scripts executable
47-
RUN chmod +x /healthz /etc/services.d/plex/run /etc/services.d/plex/finish /etc/cont-init.d/* 2>/dev/null || true
51+
RUN chmod +x /etc/services.d/plex/run /etc/services.d/plex/finish /etc/cont-init.d/* 2>/dev/null || true
4852

4953
# Plex ports (matching official pms-docker)
5054
EXPOSE 32400/tcp 8324/tcp 32469/tcp 1900/udp 32410/udp 32412/udp 32413/udp 32414/udp

root/healthz

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)