Sign inSign up

pienczyk/dockerized-librespot

By pienczyk

•Updated 5 months ago

Docker image running the librespot an open source client library for Spotify.

Image
Internet of things
0

1.5K

pienczyk/dockerized-librespot repository overview

⁠Dockerized librespot

Docker image running the librespot an open source client library for Spotify.

Librespot source code: https://github.com/librespot-org/librespot⁠

Used backed: alsa

Image is build for linux/arm/v7 and linux/amd64 platform.

Image repo: https://gitlab.com/pienczyk/dockerized-librespot/⁠

How to run:

⁠docker:
docker container run --net=host --rm -it --device=/dev/snd -e DEVICE_NAME=headless-librespot  -e BITRATE=320 pienczyk/dockerized-librespot:latest
⁠docker compose:
services:
  pihole:
    container_name: headless-librespot
    hostname: headless-librespot
    image: pienczyk/dockerized-librespot:latest
    environment:
      DEVICE_NAME: /dev/snd
      BITRATE: "320"
    devices:
      - "/dev/snd:/dev/snd"
    network_mode: host
    healthcheck:
      test: ["CMD", "curl", "http://localhost:65444"]
      interval: 1800s      # Run the health check every 30 minutes
      timeout: 5s          # Wait up to 5 seconds for a response
      retries: 3           # Mark as unhealthy after 3 failed checks
      start_period: 10s    # Allow 10 seconds for the service to initialize
    restart: always

Tag summary

Content type

Image

Digest

sha256:7f255b657…

Size

32.4 MB

Last updated

9 months ago

docker pull pienczyk/dockerized-librespot