Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ RUN set -ex \
ENV \
START_SNAPCLIENT=false \
START_AIRPLAY=false \
START_AVAHI=false \
SNAPCLIENT_OPTS="" \
SNAPSERVER_OPTS=""

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ services:
# => Don't use quotes for SNAPCLIENT_OPTS="" !
# - HOST_AUDIO_GROUP=<AUDIO-GID> # set to GID of host audio group
- START_AIRPLAY=false # set to 'true' to enable Airplay support via Shairport-sync
- START_AVAHI=false # set to 'true' to enable Avahi for Airplay
restart: "unless-stopped"
ports:
- 1704:1704
Expand Down
1 change: 1 addition & 0 deletions docker-compose.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ services:
# => Don't use quotes for SNAPCLIENT_OPTS="" !
# - HOST_AUDIO_GROUP=<AUDIO-GID> # set to GID of host audio group
- START_AIRPLAY=false # set to 'true' to enable Airplay support via Shairport-sync
- START_AVAHI=false # set to 'true' to enable Avahi for Airplay
restart: "unless-stopped"
ports:
- 1704:1704 # port for the actual audio streaming
Expand Down
6 changes: 6 additions & 0 deletions root/etc/s6-overlay/s6-rc.d/init-snapcast-config/run
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,9 @@ if [ "$START_AIRPLAY" = 'true' ]; then
else
echo "Not starting DBUS. Set 'START_AIRPLAY=true' to start it and enable Airplay support."
fi

if [ "$START_AVAHI" = 'true' ]; then
echo "Starting Avahi for Airplay"
else
echo "Not starting Avahi. Set 'START_AVAHI=true' to start it and enable Avahi support."
fi
Empty file.
Empty file.
2 changes: 2 additions & 0 deletions root/etc/s6-overlay/s6-rc.d/svc-avahi/finish
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/command/execlineb -S0
/run/s6/basedir/bin/halt
1 change: 1 addition & 0 deletions root/etc/s6-overlay/s6-rc.d/svc-avahi/notification-fd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3
6 changes: 6 additions & 0 deletions root/etc/s6-overlay/s6-rc.d/svc-avahi/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/with-contenv bash

if [ "$START_AVAHI" = 'true' ]; then
exec s6-notifyoncheck -d -n 300 -w 1000 -c "dbus-send --system / org.freedesktop.Avahi.Server.GetState" \
avahi-daemon --no-chroot
fi
1 change: 1 addition & 0 deletions root/etc/s6-overlay/s6-rc.d/svc-avahi/type
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
longrun
Empty file.