Add sys-nice request to docker compose file and comment out unnecessary stuff.

This commit is contained in:
Mike Brady
2026-06-28 17:23:14 +01:00
parent 69f5e78050
commit 6db0ba16a4
+4 -2
View File
@@ -5,20 +5,22 @@ services:
image: mikebrady/shairport-sync:latest image: mikebrady/shairport-sync:latest
network_mode: host # Required for AirPlay 2 network_mode: host # Required for AirPlay 2
restart: unless-stopped restart: unless-stopped
cap_add:
- SYS_NICE
# environment: # environment:
# PULSE_SERVER: unix:/tmp/pulseaudio.socket # Path for PulseAudio socket # PULSE_SERVER: unix:/tmp/pulseaudio.socket # Path for PulseAudio socket
# PULSE_COOKIE: /tmp/pulseaudio.cookie # Path for PulseAudio cookie # PULSE_COOKIE: /tmp/pulseaudio.cookie # Path for PulseAudio cookie
# XDG_RUNTIME_DIR: /tmp # Path for pipewire # XDG_RUNTIME_DIR: /tmp # Path for pipewire
# ENABLE_AVAHI: 0 # Disable DBus and Avahi daemon inside the container # ENABLE_AVAHI: 0 # Disable DBus and Avahi daemon inside the container
devices: devices:
- "/dev/snd" # ALSA device, omit if using PulseAudio - "/dev/snd" # For access to ALSA devices-- unnecessary unless you are outputting to an ALSA hardware device
# volumes: # volumes:
# - ./volumes/shairport-sync/shairport-sync.conf:/etc/shairport-sync.conf # Customised Shairport Sync configuration file. # - ./volumes/shairport-sync/shairport-sync.conf:/etc/shairport-sync.conf # Customised Shairport Sync configuration file.
# - /run/user/1000/pulse/native:/tmp/pulseaudio.socket # PulseAudio socket when using that backend # - /run/user/1000/pulse/native:/tmp/pulseaudio.socket # PulseAudio socket when using that backend
# - /run/user/1000/pipewire-0:/tmp/pipewire-0 # Pipewire socket when using pipewire # - /run/user/1000/pipewire-0:/tmp/pipewire-0 # Pipewire socket when using pipewire
# - /var/run/dbus:/var/run/dbus # DBus when ENABLE_AVAHI set to 0 # - /var/run/dbus:/var/run/dbus # DBus when ENABLE_AVAHI set to 0
# - /var/run/avahi-daemon:/var/run/avahi-daemon # Avahi socket when ENABLE_AVAHI set to 0 # - /var/run/avahi-daemon:/var/run/avahi-daemon # Avahi socket when ENABLE_AVAHI set to 0
# command: -o pw # You can specify the desired output with command: # command: -o pipewire # Add any options for Shairport Sync here, e.g. output backend PipeWire
logging: logging:
options: options:
max-size: "200k" max-size: "200k"