mirror of
https://github.com/casjaysdevdocker/navidrome
synced 2025-01-18 12:34:27 -05:00
🗃️ Committing everything that changed 🗃️
This commit is contained in:
parent
e50e53fc39
commit
336d44d379
@ -18,7 +18,7 @@ RUN mkdir -p /bin/ /config/ /data/ && \
|
|||||||
echo "http://dl-cdn.alpinelinux.org/alpine/$alpine_version/community" >> /etc/apk/repositories && \
|
echo "http://dl-cdn.alpinelinux.org/alpine/$alpine_version/community" >> /etc/apk/repositories && \
|
||||||
echo "http://dl-cdn.alpinelinux.org/alpine/$alpine_version/testing" >> /etc/apk/repositories && \
|
echo "http://dl-cdn.alpinelinux.org/alpine/$alpine_version/testing" >> /etc/apk/repositories && \
|
||||||
apk update -U --no-cache && \
|
apk update -U --no-cache && \
|
||||||
apk add --no-cache mpd navidrome
|
apk add --no-cache mpd mpc navidrome
|
||||||
|
|
||||||
COPY ./bin/. /usr/local/bin/
|
COPY ./bin/. /usr/local/bin/
|
||||||
COPY ./config/. /etc/
|
COPY ./config/. /etc/
|
||||||
|
@ -47,6 +47,14 @@ __exec_bash() {
|
|||||||
return ${exitCode:-$?}
|
return ${exitCode:-$?}
|
||||||
}
|
}
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
__mpd_start() {
|
||||||
|
sleep 10
|
||||||
|
mpd /config/mpd/mpd.conf
|
||||||
|
sleep 5
|
||||||
|
if pgrep mpd &>/dev/null && mpc status | grep -qv 'playing'; then
|
||||||
|
mpc play &>/dev/null
|
||||||
|
fi
|
||||||
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# Define default variables
|
# Define default variables
|
||||||
TZ="${TZ:-America/New_York}"
|
TZ="${TZ:-America/New_York}"
|
||||||
HOSTNAME="${HOSTNAME:-casjaysdev-bin}"
|
HOSTNAME="${HOSTNAME:-casjaysdev-bin}"
|
||||||
@ -137,7 +145,7 @@ healthcheck) # Docker healthcheck
|
|||||||
|
|
||||||
*) # Execute primary command
|
*) # Execute primary command
|
||||||
if [ $# -eq 0 ]; then
|
if [ $# -eq 0 ]; then
|
||||||
mpd "/config/mpd/mpd.conf"
|
__mpd_start &
|
||||||
navidrome --configfile "/config/navidrome/navidrome.toml"
|
navidrome --configfile "/config/navidrome/navidrome.toml"
|
||||||
else
|
else
|
||||||
__exec_bash "$@"
|
__exec_bash "$@"
|
||||||
|
@ -22,22 +22,21 @@ zeroconf_name "mpd server"
|
|||||||
# Character Encoding ##########################################################
|
# Character Encoding ##########################################################
|
||||||
filesystem_charset "UTF-8"
|
filesystem_charset "UTF-8"
|
||||||
# Output #######################################################################
|
# Output #######################################################################
|
||||||
audio_output {
|
|
||||||
type "httpd"
|
|
||||||
name "stream"
|
|
||||||
encoder "lame"
|
|
||||||
port "8000"
|
|
||||||
bind_to_address "0.0.0.0"
|
|
||||||
bitrate "128000"
|
|
||||||
format "48000:16:1"
|
|
||||||
always_on "yes"
|
|
||||||
tags "yes"
|
|
||||||
max_clients "0"
|
|
||||||
}
|
|
||||||
audio_output {
|
audio_output {
|
||||||
type "null"
|
type "null"
|
||||||
name "This server does not need to play music, but it can"
|
name "This server does not need to play music, but it can"
|
||||||
}
|
}
|
||||||
|
audio_output {
|
||||||
|
type "httpd"
|
||||||
|
name "stream"
|
||||||
|
encoder "lame"
|
||||||
|
port "8000"
|
||||||
|
bitrate "128"
|
||||||
|
max_clients "0"
|
||||||
|
mixer_type "software"
|
||||||
|
format "44100:16:2"
|
||||||
|
always_on "yes"
|
||||||
|
}
|
||||||
# Input #######################################################################
|
# Input #######################################################################
|
||||||
input {
|
input {
|
||||||
plugin "curl"
|
plugin "curl"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user