switch to GioF71 mpd implementation

This commit is contained in:
deflax 2024-09-07 03:09:10 +03:00
parent ec44cea3d3
commit 3779b66ac4
4 changed files with 26 additions and 26 deletions

0
data/logs/.gitkeep Normal file
View file

0
data/playlists/.gitkeep Normal file
View file

View file

@ -1,38 +1,35 @@
version: '2.4' version: '3.3'
services: services:
mpd: mpd:
#build: build:
# context: ./ context: ./
# dockerfile: alpine.Dockerfile dockerfile: Dockerfile
image: tobi312/rpi-mpd:alpine
container_name: mpd container_name: mpd
restart: unless-stopped restart: unless-stopped
devices:
- "/dev/snd:/dev/snd"
ports: ports:
- 6600:6600/tcp # MPD Client - 6600:6600/tcp
- 8000:8000/tcp # Stream environment:
## PipeWire support - USER_MODE=Y
#environment: - PUID=1000
#- XDG_RUNTIME_DIR=/tmp - PGID=1000
- AUDIO_GID=29
- ALSA_OUTPUT_CREATE=yes
- ALSA_OUTPUT_NAME=
- ALSA_OUTPUT_DEVICE=hw:0
- ALSA_OUTPUT_MIXER_CONTROL=Digital
- ALSA_OUTPUT_MIXER_DEVICE=hw:0
- ALSA_OUTPUT_MIXER_TYPE=hardware
volumes: volumes:
- /srv/music:/var/lib/mpd/music:ro - /srv/music:/music:ro
- /srv/playlists:/var/lib/mpd/playlists:rw #- ./config/lastfm.txt:/user/config/lastfm.txt:ro
- ./data:/var/lib/mpd/data:rw - ./data/db:/db:rw
#- ./config/mpd.conf:/etc/mpd.conf:rw - ./data/playlists:/playlists:rw
- ./data/logs:/log:rw
# Time: # Time:
- /etc/timezone:/etc/timezone:ro - /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime: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:
- SYS_NICE
healthcheck:
test: ["CMD-SHELL", "nc -nzv -w 3 127.0.0.1 6600 || exit 1"]
interval: 60s
timeout: 5s
retries: 3
cyp: cyp:
build: build:
@ -42,6 +39,9 @@ services:
restart: unless-stopped restart: unless-stopped
ports: ports:
- 8080:8080/tcp - 8080:8080/tcp
environment:
- MPD_HOST=192.168.32.209
- MPD_PORT=6600
volumes: volumes:
- ../cyp/_youtube:/cyp/_youtube - ../cyp/_youtube:/cyp/_youtube