From f0b9e3d1bd960a64910b5ae163a3bc6baf301472 Mon Sep 17 00:00:00 2001 From: Loxbie <ole@freirad.at> Date: Mon, 29 Jan 2024 14:43:56 +0100 Subject: [PATCH] Fix: add env variable for user id add AURA_USER_ID to map /run/user/${AURA_USER_ID}/pipewire-0 into the container --- docker-compose.yaml | 4 +--- sample.env | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index c279de6..d1d4758 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -61,9 +61,7 @@ services: AURA_ENGINE_STREAM_OUTPUT_GENRE: ${AURA_ENGINE_STREAM_OUTPUT_GENRE} volumes: # this needs to be the path of the user running pipewire, most likely the current user - - /run/user/1000/pipewire-0:/tmp/pipewire-0 - - ./../services/:/etc/aura/:ro - # - ./asound.conf:/etc/asound.conf + - /run/user/${AURA_USER_ID}/pipewire-0:/tmp/pipewire-0 - ${AURA_AUDIO_STORE_SOURCE}:/var/audio/source - ${AURA_AUDIO_STORE_PLAYLIST}:/var/audio/playlist - ${AURA_AUDIO_STORE_FALLBACK}:/var/audio/fallback diff --git a/sample.env b/sample.env index 9d9dfee..1703238 100644 --- a/sample.env +++ b/sample.env @@ -6,7 +6,7 @@ TIMEZONE=Europe/Vienna # Folder to store service log files AURA_LOGS=logs - +AURA_USER_ID=2872 ### AUDIO STORE -- GitLab