larsks / docker-image-logitech-media-server

MIT License
33 stars 74 forks source link

Make UID and GID configurable #16

Closed Poquaruse closed 6 years ago

Poquaruse commented 6 years ago

Hi,

when mapping my music folder (e.g. -v /local/music/folder:/srv/music) I need to make the local folder readable by everyone in order to be able to see it inside the container. From what I've seen in entrypoint.sh you specify a certain user to run LMS. This user's UID and GID are unknown to the host system and thus, I can't grant the appropriate access rights and have to grant read to everybody.

Could you please make UID and GID configurable via environement variables? That would enable a fine grained access control... Thanks!

Best regards

larsks commented 6 years ago

I've just pushed a change that will let you control the UID and GID of the squeezeboxserver process with the SQUEEZE_UID and SQUEEZE_GID environment variables. Let me know if that works for you.

kungfoolfighting commented 5 years ago

This info should be added to the front page of the docker hub for this project. I have spent a ton of time trying to figure this out and also then tried other docker images just to find the right info here in the end.

larsks commented 5 years ago

Pull requests are always welcome! But I will try to get to this.