Sign inSign up

giof71/listenbrainz-mpd

By giof71

Updated about 1 year ago

Run listenbrainz-mpd on docker

Image
1

10K+

giof71/listenbrainz-mpd repository overview

listenbrainz-mpd-docker

A docker image for listenbrainz-mpd, available for amd64, armv7 and arm64v8 platforms.
A big thank you goes to the author, who also very quickly solved two issues that have probably gone unnoticed in normal use, but that I encountered while building this docker image.

REPOSITORY TYPELINK
Git RepositoryGitHub
Docker ImagesDocker Hub

Build

From the repository directory, you can build your own image using the following:

docker build . -t giof71/listenbrainz-mpd

Please note that this will take a while, because the code will be compiled by cargo.

Configuration

Environment Variables
VARIABLEDESCRIPTION
LISTENBRAINZ_TOKENListenbrainz token, alternative to LISTENBRAINZ_TOKEN_FILE
LISTENBRAINZ_TOKEN_FILEListenbrainz token file, alternative to LISTENBRAINZ_TOKEN
ENABLE_CACHEEnables submission caching (YES/NO, Y/N, True/False, case insensitive)
CACHE_DIRECTORYSubmission caching directory, defaults to /cache
CACHE_FILESubmission caching file, defaults to cache.sqlite3
MPD_ADDRESSip/hostname and port of mpd, defaults to localhost:6600
MPD_PASSWORDMPD password, alternative to MPD_PASSWORD_FILE
MPD_PASSWORD_FILEMPD password file, alternative to MPD_PASSWORD
LISTENBRAINZ_MPD_LOGLog level (trace,debug,info,warn,error,off)
GENRE_AS_FOLKSONOMYSubmit genre tags on the played songs as folksonomy tags
GENRE_SEPARATORSplit genres at the given separator character, defaults to ;
PUIDRun the application using that uid, defaults to 1000
PGIDRun the application using that gid, defaults to 1000
Volumes
VOLUMEDESCRIPTION
/cacheSubmission cache directory

Examples

Compose file
---
version: '3.3'

services:
  lb-d10-vanilla:
    image: giof71/listenbrainz-mpd
    container_name: lb-d10-vanilla
    network_mode: host
    user: "${PUID:-1000}:${PGID:-1000}"
    environment:
      - MPD_ADDRESS=localhost:6600
      - LISTENBRAINZ_TOKEN=your-listenbrainz-token
    restart: unless-stopped

Please note that the fact you need network_mode: host depends on how this container can reach the target mpd.
If you have set a docker network for mpd, you can avoid using host networking, but you will have to specify MPD_ADDRESS accordingly.

Change history

DATEDESCRIPTION
2025-08-07Building with version 2.3.9
2024-11-15Fixed handling of GENRE_AS_FOLKSONOMY, see this thread
2024-08-20Building with version 2.3.8
2024-06-06Building with version 2.3.7
2024-05-19Building with version 2.3.6
2024-04-20Building with version 2.3.5
2024-04-14Support genre-related features
2024-04-13Initial Release

Tag summary

Content type

Image

Digest

sha256:27e76f8ef

Size

34.4 MB

Last updated

about 1 year ago

docker pull giof71/listenbrainz-mpd