Add MPD docker setup

This commit is contained in:
Sonny Bakker 2025-04-21 17:32:24 +02:00
parent bd503eaa0d
commit 4259710626
10 changed files with 170 additions and 77 deletions

View file

@ -0,0 +1,25 @@
# {{ ansible_managed }}
FROM alpine:latest
RUN apk --no-cache add \
mpd; \
RUN useradd \
--uid 1000 \
--guid 1000 \
--groups mpd \
--shell /sbin/nologin \
--no-create-home \
--no-user-group \
sonny
USER sonny
WORKDIR /app
RUN mkdir /app/config /app/state /app/playlists
EXPOSE {{ mpd_port }}/tcp {{ mpd_http_stream_port }}/tcp {{ mpd_http_mobile_stream_port }}/tcp
CMD ["/usr/bin/mpd", "--no-daemon", "--stdout", "/app/config/mpd.conf"]