mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 05:30:45 +00:00
navidrome: Update to 0.49.3, start on health-check
This commit is contained in:
parent
3cb622e25a
commit
c728f61642
@ -1,11 +1,10 @@
|
||||
FROM docker.io/debian:bookworm-slim
|
||||
ARG VERSION=0.49.2
|
||||
ARG VERSION=0.49.3
|
||||
|
||||
ENV PACKAGE_URL https://github.com/deluan/navidrome/releases/download/v${VERSION}/navidrome_${VERSION}_Linux_x86_64.tar.gz
|
||||
RUN apt-get update -y && apt-get upgrade -y && \
|
||||
apt-get install -y --no-install-recommends curl ca-certificates gosu ffmpeg && \
|
||||
curl -L ${PACKAGE_URL} | tar -C /bin --no-same-owner -xvzf - navidrome && chmod +x /bin/navidrome && \
|
||||
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false curl
|
||||
RUN apt-get update -y && apt-get upgrade -y && apt-get install -y --no-install-recommends \
|
||||
curl ca-certificates gosu ffmpeg && \
|
||||
curl -L ${PACKAGE_URL} | tar -C /bin --no-same-owner -xvzf - navidrome && chmod +x /bin/navidrome
|
||||
|
||||
RUN addgroup --system --gid 10000 navidrome
|
||||
RUN adduser --system --uid 10000 --ingroup navidrome --home /var/lib/navidrome navidrome
|
||||
|
@ -4,9 +4,12 @@ Wants=container-build@%N.service container-volume@%N.service
|
||||
After=container-build@%N.service container-volume@%N.service
|
||||
|
||||
[Container]
|
||||
AutoUpdate=local
|
||||
ContainerName=%N
|
||||
HealthCmd=timeout 5s curl --fail --silent --show-error -o /dev/null localhost:4533/ping
|
||||
Image=localhost/%N:latest
|
||||
Network=internal
|
||||
PodmanArgs=--sdnotify=healthy
|
||||
Volume=%N:/var/lib/%N:z
|
||||
Volume=%N-music:/music:z,ro
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user