Skip to content

Commit

Permalink
Merge pull request #10 from extremelyonline/master
Browse files Browse the repository at this point in the history
PipeWire Support + Use debian slim
  • Loading branch information
Tob1as authored Jan 14, 2024
2 parents 7b3f53e + 985fe55 commit 988928c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
6 changes: 4 additions & 2 deletions debian.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:latest
FROM debian:stable-slim

ARG BUILD_DATE
ARG VCS_REF
Expand All @@ -19,6 +19,8 @@ RUN set -eux ; \
apt-get install -y --no-install-recommends \
mpd \
mpc \
pipewire-audio wireplumber \
pipewire-media-session- \
; \
rm -rf /var/lib/apt/lists/* ; \
mkdir /var/lib/mpd/data ; \
Expand All @@ -39,4 +41,4 @@ VOLUME /var/lib/mpd
WORKDIR /var/lib/mpd
EXPOSE 6600 8000

CMD ["/usr/bin/mpd", "--no-daemon", "--stdout", "/etc/mpd.conf"]
CMD ["/usr/bin/mpd", "--no-daemon", "--stdout", "/etc/mpd.conf"]
9 changes: 7 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ services:
ports:
- 6600:6600/tcp # MPD Client
- 8000:8000/tcp # Stream
## PipeWire support
#environment:
#- XDG_RUNTIME_DIR=/tmp
volumes:
- ./Music:/var/lib/mpd/music:ro
- ./playlists:/var/lib/mpd/playlists:rw
Expand All @@ -19,6 +22,8 @@ services:
## Time:
#- /etc/timezone:/etc/timezone:ro
#- /etc/localtime:/etc/localtime:ro
## PipeWire support by mounting the host socket
#- /run/user/1000/pipewire-0:/tmp/pipewire-0
#devices:
# - "/dev/snd:/dev/snd"
#cap_add:
Expand All @@ -28,7 +33,7 @@ services:
interval: 60s
timeout: 5s
retries: 3

# # https://github.com/jcorporation/myMPD
# mympd:
# image: ghcr.io/jcorporation/mympd/mympd:latest
Expand All @@ -40,7 +45,7 @@ services:
# environment:
# - TZ=Europe/Berlin
# - UMASK_SET=022 #optional
# # Notice: After the first start all environment variables are ignored, except loglevel.
# # Notice: After the first start all environment variables are ignored, except loglevel.
# - MPD_HOST=mpd
# - MPD_PORT=6600
# #- MPD_TIMEOUT=30
Expand Down
6 changes: 6 additions & 0 deletions mpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,12 @@ input {
# blocks. Setting this block is optional, though the server will only attempt
# autodetection for one sound card.
#
# An example of a PipeWire output:
#
#audio_output {
# type "pipewire"
# name "PipeWire Playback"
#}
# An example of an ALSA output:
#
#audio_output {
Expand Down

0 comments on commit 988928c

Please sign in to comment.