{"id":15502736,"url":"https://github.com/j-siu/docker_mpd","last_synced_at":"2025-04-22T23:15:18.672Z","repository":{"id":132734641,"uuid":"277916547","full_name":"J-Siu/docker_mpd","owner":"J-Siu","description":"Docker - MPD with UID/GID + audio GID handling.","archived":false,"fork":false,"pushed_at":"2024-08-28T05:12:11.000Z","size":46,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-22T23:15:12.876Z","etag":null,"topics":["docker","mpd"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/J-Siu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-07T20:34:04.000Z","updated_at":"2024-08-28T05:12:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"5ae4888d-c6f3-4d43-bb26-042f22ee9935","html_url":"https://github.com/J-Siu/docker_mpd","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J-Siu%2Fdocker_mpd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J-Siu%2Fdocker_mpd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J-Siu%2Fdocker_mpd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J-Siu%2Fdocker_mpd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/J-Siu","download_url":"https://codeload.github.com/J-Siu/docker_mpd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250337950,"owners_count":21414104,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","mpd"],"created_at":"2024-10-02T09:10:55.041Z","updated_at":"2025-04-22T23:15:18.640Z","avatar_url":"https://github.com/J-Siu.png","language":"Shell","funding_links":["https://www.paypal.com/donate/?business=HZF49NM9D35SJ\u0026no_recurring=0\u0026currency_code=CAD"],"categories":[],"sub_categories":[],"readme":"# Docker - MPD with UID/GID + audio GID handling [![Paypal donate](https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif)](https://www.paypal.com/donate/?business=HZF49NM9D35SJ\u0026no_recurring=0\u0026currency_code=CAD)\n\n### Table Of Content\n\u003c!-- TOC --\u003e\n\n- [Build](#build)\n- [Usage](#usage)\n  - [Host Directories and Volume Mapping](#host-directories-and-volume-mapping)\n  - [MPD_UID / MPD_GID](#mpd_uid--mpd_gid)\n  - [Run](#run)\n  - [Debug / Custom Config](#debug--custom-config)\n  - [Compose](#compose)\n- [Repository](#repository)\n- [Contributors](#contributors)\n- [Change Log](#change-log)\n- [License](#license)\n\n\u003c!-- /TOC --\u003e\n\u003c!--more--\u003e\n### Build\n\n```sh\ngit clone https://github.com/J-Siu/docker_mpd.git\ncd docker_mpd\ndocker build -t jsiu/mpd .\n```\n\n### Usage\n\n#### Host Directories and Volume Mapping\n\nHost|Inside Container|Mapping Required|Usage\n---|---|---|---\n${MPD_PATH_CONF}|/mpd.conf|Optional|MPD configuration file\n${MPD_PATH_MPD}|/mpd/.mpd|Yes|Contain playlists folder, state file, database file\n${MPD_PATH_MUSIC}|/mpd/music|Yes|MPD audio file folder\n${MPD_PORT}|6000/tcp|Yes|MPD listening port\n${MPD_SND}||Yes|MPD output device\n\nCreate playlists director inside ${MPD_PATH_MPD} if not exist yet.\n\n```sh\nmkdir -p ${MPD_PATH_MPD}/playlists\n```\n\n#### MPD_UID / MPD_GID\n\nENV VAR|Usage\n---|---\nMPD_UID|UID of ${MPD_PATH_MPD},${MPD_PATH_MUSIC} owner\nMPD_GID|GID of ${MPD_PATH_MPD},${MPD_PATH_MUSIC} owner\n\n#### Run\n\n```docker\ndocker run \\\n-d \\\n-e PUID=${MPD_UID} \\\n-e PGID=${MPD_GID} \\\n-p ${MPD_PORT}:6600/tcp \\\n-v ${MPD_PATH_MPD}:/mpd/.mpd \\\n-v ${MPD_PATH_MUSIC}:/mpd/music \\\n--device ${MPD_SND} \\\n--cap-add sys_nice \\\njsiu/docker_mpd\n```\n\nExample:\n\nIf ${MPD_PATH_MPD} and ${MPD_PATH_MUSIC} owner's UID=1001 and GID=1002:\n\n```docker\ndocker run \\\n-d \\\n-e PUID=1001 \\\n-e PGID=1002 \\\n-p 6600:6600/tcp \\\n-v /home/jsiu/MPD:/mpd/.mpd \\\n-v /home/jsiu/Music:/mpd/music \\\n--device /dev/snd \\\n--cap-add sys_nice \\\njsiu/docker_mpd\n```\n\n#### Debug / Custom Config\n\nGet config from image:\n\n```docker\ndocker run --rm jsiu/docker_mpd cat /mpd.conf \u003e mpd.conf\n```\n\nChange mpd.conf log_level to verbose:\n\n```conf\nlog_level  \"verbose\"\n```\n\nRun with mpd.conf mapping:\n\n```docker\ndocker run \\\n-e PUID=1001 \\\n-e PGID=1002 \\\n-p 6600:6600/tcp \\\n-v /home/jsiu/mpd.conf:/mpd.conf \\ # Map mpd.conf into container\n-v /home/jsiu/MPD:/mpd/.mpd \\\n-v /home/jsiu/Music:/mpd/music \\\n--device /dev/snd \\\njsiu/docker_mpd\n```\n\n#### Compose\n\nGet docker-compose template from image:\n\n```docker\ndocker run --rm jsiu/mpd cat /docker-compose.yml \u003e docker-compose.yml\ndocker run --rm jsiu/mpd cat /env \u003e .env\n```\n\nFill in `.env` according to your environment.\n\n```sh\ndocker-compose up\n```\n\n### Repository\n\n- [docker_mpd](https://github.com/J-Siu/docker_mpd)\n\n### Contributors\n\n- [John Sing Dao Siu](https://github.com/J-Siu)\n\n### Change Log\n\n- 0.21.14\n  - Matching mpd version number\n  - Base image: alpine:edge\n  - mpd version: 0.21.14\n- 0.21.19\n  - mpd version: 0.21.19\n- 0.21.22\n  - mpd version: 0.21.22\n- 0.21.23\n  - mpd version: 0.21.23\n- 0.21.24\n  - mpd version: 0.21.24\n  - start.sh\n    - Use exec so start.sh can exit\n    - Add exit code 1\n    - Remove delgroup/deluser ${PUSR}\n- 0.21.25-r0\n  - Auto update to 0.21.25-r0\n- 0.22-r1\n  - Auto update to 0.22-r1\n- 0.22.3-r1\n  - Auto update to 0.22.3-r1\n- 0.22.4-r0\n  - Auto update to 0.22.4-r0\n- 0.22.6-r0\n  - Auto update to 0.22.6-r0\n- 0.22.6-r1\n  - Auto update to 0.22.6-r1\n- 0.22.8-r2\n  - Auto update to 0.22.8-r2\n- 0.22.9-r0\n  - Auto update to 0.22.9-r0\n- 0.23.6-r1\n  - Auto update to 0.23.6-r1\n- 0.23.6-r1-p1\n  - Add docker push github workflow\n- 0.23.6-r2\n  - Auto update to 0.23.6-r2\n- 0.23.7-r0\n  - Auto update to 0.23.7-r0\n- 0.23.7-r1\n  - Auto update to 0.23.7-r1\n- 0.23.7-r3\n  - Auto update to 0.23.7-r3\n- 0.23.7-r4\n  - Auto update to 0.23.7-r4\n- 0.23.8-r2\n  - Auto update to 0.23.8-r2\n- 0.23.12-r5\n  - Auto update to 0.23.12-r5\n- 0.23.13-r7\n  - Auto update to 0.23.13-r7\n- 0.23.15-r4\n  - Auto update to 0.23.15-r4\n\u003c!--CHANGE-LOG-END--\u003e\n\n### License\n\nThe MIT License\n\nCopyright (c) 2024\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj-siu%2Fdocker_mpd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fj-siu%2Fdocker_mpd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj-siu%2Fdocker_mpd/lists"}