Giter Site home page Giter Site logo

docker-snapcast's Introduction

Snapcast (Docker Image)

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:

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
  • Based on linuxserver/docker-baseimage-alpine
    • ... which allows use of linuxserver/docker-mods to add more pip & OS packages
    • Uses s6-overlay from base image
    • small footprint

docker-compose

I strongly advice to use docker-compose, as using a docker commandline is quite annoying with a complex 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

docker-snapcast's People

Contributors

sweisgerber avatar sweisgerber-dev avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.