forcing a client hostname to make identification in music assistant easier

This commit is contained in:
menekis
2026-07-19 15:06:12 -04:00
parent 42bd0f13d7
commit c90d9d9ee0
+2 -2
View File
@@ -2,16 +2,16 @@ services:
snapclient: snapclient:
image: sailr/snapclient:latest image: sailr/snapclient:latest
container_name: snapclient container_name: snapclient
hostname: kitchen-speaker # Sets the display name reported to the server
restart: unless-stopped restart: unless-stopped
network_mode: "host" network_mode: "host"
devices: devices:
# This line is crucial: it passes the host's audio hardware into the container
- "/dev/snd:/dev/snd" - "/dev/snd:/dev/snd"
environment: environment:
# Set the audio group ID to match your host's audio group (usually 29 on Debian/Ubuntu/PiOS)
- PUID=1000 - PUID=1000
- PGID=29 - PGID=29
command: > command: >
-h <YOUR_MUSIC_ASSISTANT_IP> -h <YOUR_MUSIC_ASSISTANT_IP>
--player alsa --player alsa
--soundcard default --soundcard default
--hostID kitchen-pi-zero # Forces a unique fixed MAC/ID for the server to track