Snapcast Multiroom audio docker image https://github.com/sweisgerber/docker-snapcast
100K+
Snapcast Multiroom audio docker image.
Based on linuxserver/docker-baseimage-alpine & snapcast. Also available at DockerHub
Should get used in conjunction with a player, that plays to a FIFO, like:
for functioning as spotify & airplay target.
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/
To enable snapclient:
/dev/snd into the container, which should get used exclusively by snapclient. Or try a more sophisticated setup:
START_SNAPCLIENT=true as environment variable.SNAPCLIENT_OPTS as environment variable as needed, or leave empty to try defaults.
--soundcard, find out with snapclient --listIn any case, give the official documentation a read
Content type
Image
Digest
sha256:40d91e732…
Size
27.4 MB
Last updated
about 17 hours ago
docker pull sweisgerber/snapcast