diff --git a/docker-compose.yml b/docker-compose.yml index ed42a3a..a513e78 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,16 +2,16 @@ services: snapclient: image: sailr/snapclient:latest container_name: snapclient + hostname: kitchen-speaker # Sets the display name reported to the server restart: unless-stopped network_mode: "host" devices: - # This line is crucial: it passes the host's audio hardware into the container - "/dev/snd:/dev/snd" environment: - # Set the audio group ID to match your host's audio group (usually 29 on Debian/Ubuntu/PiOS) - PUID=1000 - PGID=29 command: > -h --player alsa --soundcard default + --hostID kitchen-pi-zero # Forces a unique fixed MAC/ID for the server to track