GioF71 / mpd-alsa-docker

Easily run mpd with Alsa or PulseAudio output with Docker. Upsampling 2x 4x 8x with "Goldilocks" settings by Archimago. Scrobbling support.
Apache License 2.0
18 stars 5 forks source link

[Feature] Add an environment variable which allows using custom mpd.conf file #356

Closed vari closed 7 months ago

vari commented 7 months ago

It would be great to have an environment variable which can be used to override the generation of the mpd.conf file in the container or specify a path to a custom mpd.conf file to use instead of the default one. This will enable use cases not currently supported by the container and provide a mechansim to provide a custom conf file in case there is a bug with the generated config in the future.

(Separate issue created as per request in #355 )

GioF71 commented 7 months ago

Hello, I implemented this using the (already existing) volume /user/config Just place (or anyway mount) a file named override.mpd.conf to use that file instead of the generated configuration file. Hope this will work for you, enjoy!

p.s. images building now