Add MPD docker setup
This commit is contained in:
parent
bd503eaa0d
commit
4259710626
10 changed files with 170 additions and 77 deletions
25
templates/mpd/dockerfile.j2
Normal file
25
templates/mpd/dockerfile.j2
Normal 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"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue