spotifyd-docker/README.md
2022-02-06 23:35:47 +01:00

1.4 KiB

Spotifyd docker

Repo

Docker Hub

Run spotifyd inside docker. Inspired by GnaphronG/docker-spotifyd.

Setup

You need to add the /dev/snd to the container.

If the container starts successfully and you still hear no audio then the audio output may be disabled in alsa. In that case you can open bash inside your container and run alsamixer. There you can unmute the master. When it comes to alsa i recommend reading the ArchWiki on this topic.

Check out the docker-compose.yml for an example.

Configuration

Following variables are available. See the spotifyd doc for more information.

USERNAME Required. Spotify username.

PASSWORD Required. Spotify password.

DEVICE Name of the device. Default: "Spotifyd"

VOLUME_NORMALISATION If set to true, enables volume normalisation between songs.

NORMALISATION_PREGAIN The normalisation pregain that is applied for each song.

BITRATE The audio bitrate. 96, 160 or 320 kbit/s.

DEVICE_TYPE# The displayed device type in Spotify clients. Can be computer, tablet, smartphone, speaker, tv, avr, stb, audiodongle.

INITIAL_VOLUME Volume on startup between 0 and 100.