Sign inSign up

sweisgerber/snapcast

By sweisgerber

•Updated about 17 hours ago

Snapcast Multiroom audio docker image https://github.com/sweisgerber/docker-snapcast

Image
0

100K+

sweisgerber/snapcast repository overview

⁠Snapcast (Docker Image)

Snapcast Multiroom audio docker image.

Should get used in conjunction with a player, that plays to a FIFO, like:

⁠Features Include:

  • SnapServer w/ sane defaults⁠
  • Snapclient (optional, needs mounting of host audio devices into docker)
  • snapweb⁠ management interface & browser audio playback
    • default on http://:1780m which include a browser snapclient player
  • alsa
  • librespot (for functioning as spotify target)
  • shairport-sync (for functioning as airplay target)
  • FIFO usage to stream the audio from players to the network
  • Uses s6-overlay from base image
  • small footprint

for functioning as spotify & airplay target.

⁠docker-compose

I strongly advice to use docker-compose, as using a docker commandline is quite annoying with a comlex setup. An example can get found in the repository⁠.

version: "3"
services:
  snapcast:
    image: docker.io/sweisgerber/snapcast:latest
    hostname: snapcast
    environment:
      - PUID=1000
      - PGID=1000 # set to audio group ID
      - TZ=Europe/Berlin
      - START_SNAPCLIENT=false # set to `true` for snapclient to start
      # --host: name or ip of compose service or dockerhost
      # --soundcard: <ID> from `snapclient -l` from inside the container
      # - SNAPCLIENT_OPTS=--host snapcast --soundcard <ID>
      #   => Don't use quotes for SNAPCLIENT_OPTS="" !
      # - HOST_AUDIO_GROUP=<AUDIO-GID> # set to GID of host audio group
    restart: "unless-stopped"
    ports:
      - 1704:1704
      - 1705:1705
      - 1780:1780
    # devices:
      # - /dev/snd:/dev/snd # optional, only if you want to use snapclient
    volumes:
      - /<path>/<to>/<snapcast>/config/:/config/
      - /<path>/<to>/<snapcast>/data/:/data/
      # /audio should get used to place FIFOs for audio playback from mpd/mopidy/host/etc
      - /<path>/<to>/audio-fifos/:/audio/

⁠Configuration

⁠Configuration SnapClient

To enable snapclient:

In any case, give the official documentation a read⁠

Tag summary

Content type

Image

Digest

sha256:40d91e732…

Size

27.4 MB

Last updated

about 17 hours ago

docker pull sweisgerber/snapcast