Added GROUP_ID and fixed permission error for configuration and wake data volumes

This commit is contained in:
Florian Asche committed 2026-02-02 02:26:30 +01:00
1 parent 3ec38e9283
commit 526ea35b4b
2 files changed
+19 -1

No files matched your search

+1
View File
@@ -11,6 +11,7 @@
### User ID: ### User ID:
# This is used to set the correct permissions for the accessing the audio device and accessing the PulseAudio socket # This is used to set the correct permissions for the accessing the audio device and accessing the PulseAudio socket
USER_ID="1000" USER_ID="1000"
USER_GROUP="1000"
### Name for the client (optional): ### Name for the client (optional):
# by default it uses the HOSTNAME variable from the piCompose environment which includes the MAC from the network card # by default it uses the HOSTNAME variable from the piCompose environment which includes the MAC from the network card
+18 -1
View File
@@ -1,11 +1,26 @@
--- ---
services: services:
# Fix permissions for wakeword_data and configuration volume
fix-permissions:
image: "ghcr.io/ohf-voice/linux-voice-assistant:latest"
entrypoint: []
command: "chown -R ${USER_ID}:${USER_GROUP} /app/local /app/configuration"
env_file: .env
group_add:
- audio
volumes:
# Wakeword data and configuration
- wakeword_data:/app/local
- configuration:/app/configuration
restart: "no"
# Linux Voice Assistant
linux-voice-assistant: linux-voice-assistant:
container_name: linux-voice-assistant container_name: linux-voice-assistant
image: "ghcr.io/ohf-voice/linux-voice-assistant:latest" image: "ghcr.io/ohf-voice/linux-voice-assistant:latest"
restart: unless-stopped restart: unless-stopped
network_mode: "host" network_mode: "host"
user: "${USER_ID}" user: "${USER_ID}:${USER_GROUP}"
environment: environment:
# Pulseaudio # Pulseaudio
- XDG_RUNTIME_DIR=${XDG_RUNTIME_DIR} - XDG_RUNTIME_DIR=${XDG_RUNTIME_DIR}
@@ -26,6 +41,8 @@ services:
# Pulseaudio # Pulseaudio
# /run/user/1000:/run/user/1000 # /run/user/1000:/run/user/1000
- ${XDG_RUNTIME_DIR}:${XDG_RUNTIME_DIR} - ${XDG_RUNTIME_DIR}:${XDG_RUNTIME_DIR}
depends_on:
- fix-permissions
# Health check for process # Health check for process
healthcheck: healthcheck:
test: ["CMD", "pgrep", "-f", "linux_voice_assistant"] test: ["CMD", "pgrep", "-f", "linux_voice_assistant"]