Useful for running snapcast server on Hifiberry OS or any other armv7 architecture
To build the docker image from the raspberry Pi 3/4
docker build . -t ssalaues:snapcast
Pull my pre-built image
docker pull ssalaues:snapcast
Run interactively with defaults. This will clean up the container when it exits.
docker run --rm -it --network=host ssalaues:snapcast snapserver
Mount config file, run as detached process, and auto restart on failure
docker run -d --restart=always --network=host -v $PWD/snap_conf_folder:/config ssalaues:snapcast snapserver -c /config/snapserver.conf
The docker-compose.yaml
file can be used to accomplish virtually the same as the above docker run
command however in a configurable yaml file. This file includes a bind mount to the /tmp
directory for usage with the snapfifo
pipe. I use this specifically for piping the analog input on the Hifiberry DAC+ ADC into the snapserver however it can be used to pipe any audio source.
To run snapserver using Hifiberry OS specific folder structure:
git clone https://github.com/ssalaues/hifiberry-snapserver.git /data/docker/snapserver
cd /data/docker/snapserver
docker-compose up -d
The /config
directory is mounted into the container and so all snapserver.conf
values can be edited outside of the container. To restart the container after modifying the values run:
docker-compose restart
To tail the logs of the server:
docker-compose logs -f