Dockerfile and more for MPD
- Shell 100%
| .woodpecker | ||
| music | ||
| .env | ||
| docker-compose.yaml | ||
| Dockerfile.debian | ||
| entrypoint.sh | ||
| LICENSE | ||
| readme.md | ||
| renovate.json | ||
| shout.conf | ||
| tunes.m3u | ||
MPD in a container???
This is a Dockerfile for running MPD in a containerized environment.
running
docker run \
-v ./shout.conf:/mpd/shout.conf \
grumble/mpd:v0.23.15 /mpd/shout.conf
Also included is a Docker Compose configuration that demonstrates how MPD can be used to stream to an Icecast server:
docker compose up --build --detach
docker compose exec mpd mpc update --wait
docker compose exec mpd mpc load tunes
docker compose exec mpd mpc repeat on
docker compose exec mpd mpc play
At this point you should be able to access your horrible new radio station at http://localhost:8000/mpd.m3u.
configuration
MPD does not allow configuration via environment variables. We circumvent this
by running envsubst at startup, which rewrites the MPD
configuration with the values of provided environment variables (currently only
for ICECAST_SOURCE_PASSWORD).