/librespot-alsa

Remote control Spotify player (i.e. Spotify Connect) using librespot and alsa

Primary LanguageDockerfileMIT LicenseMIT

Librespot-alsa

Librespot Docker image compiled with the alsa backend.

Librespot lets you play content from Spotify to a speaker connected to your server. Note that this requires a Spotify Premium account.

Refer to the librespot project here.

Image

Pull Docker image

docker pull agneev/librespot-alsa

Deploy

git clone https://github.com/agneevX/librespot-alsa
cd librespot-alsa

docker compose up -d

For more examples, refer to the documentation linked above.

services:
  librespot:
    container_name: librespot
    image: agneev/librespot-alsa
    restart: unless-stopped
    network_mode: host # Comment to use Docker networking
    command:
      - --name=Spotify Speaker
      - --bitrate=320
      - --autoplay
      - --initial-volume=75
      - --enable-volume-normalisation
     # - --disable-discovery # Uncomment to disable mDNS discovery
     # - --username=$SPOTIFY_USERNAME # Uncomment to 
     # - --password=$SPOTIFY_PASSWORD # use Spotify sign-in
    devices:
      - /dev/snd:/dev/snd