diff --git a/README.md b/README.md index b66b0e993ce52c02bcb817b8b1499aacf7d013b5..9b918b484e14c2cf94357f7d1117b6375a9d9167 100644 --- a/README.md +++ b/README.md @@ -180,6 +180,21 @@ Voilá, you should hear some music! When running engine-core with docker compose you need a different configuration file to start with. Have a look at `config/sample.engine-core.docker.ini` and copy it to `config/engine-core.ini` (FIXME: this uses the overwrite in /etc/aura/ and is not the best of options). Do not change the paths here, rather change them in `sample.env` and copy this file to `.env`. Make sure the directories in `.env` are read and writable for the user used in the container, mainly `aura(2872:2872)`. +It is important to set the `PIPEWIRE_USER_ID` to the uid of the user running pipewire. To check which user is running the pipewire server run the following: + +```bash +ps -fp $(pgrep -d, -x pipewire) + +# UID PID PPID C STIME TTY TIME CMD +# loxbie 2034 2025 0 09:19 ? 00:00:00 /usr/bin/pipewire +``` + +```bash +id -u loxbie + +# 1000 +``` + You can now build the container with ```bash diff --git a/docker-compose.yaml b/docker-compose.yaml index d1d4758668d919768ce19a84f9765216dbad9012..6e0d61656d265995b2486cbe0e9ea0f3cec98237 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -61,7 +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/${AURA_USER_ID}/pipewire-0:/tmp/pipewire-0 + - /run/user/${PIPEWIRE_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 1703238cdd54c5034e6686701f537532710273eb..4f781e657a824eacb3763dd3a9c3df33098d104d 100644 --- a/sample.env +++ b/sample.env @@ -5,8 +5,10 @@ # Timezone TIMEZONE=Europe/Vienna # Folder to store service log files -AURA_LOGS=logs -AURA_USER_ID=2872 +AURA_LOGS=./logs + +# The user id under which the pipewire server is running +PIPEWIRE_USER_ID=1000 ### AUDIO STORE