diff --git a/README.md b/README.md index c186e2c..f055a35 100644 --- a/README.md +++ b/README.md @@ -9,9 +9,11 @@ Needs `docker` and `docker-compose` xhost +"local:docker@" ``` -### Change your local user UID in the next line of `docker-compose.yml` for pulseaudio (default 1000) -``` -- /run/user/[UID]/pulse:/run/user/1000/pulse +### Add your local user UID and GID in the `.env` file: + +```bash +echo "UID=${UID}" > .env +echo "GID=${UID}" >> .env ``` ### Execute with compose @@ -21,4 +23,4 @@ docker-compose up -d ### License -MIT \ No newline at end of file +MIT diff --git a/docker-compose.yml b/docker-compose.yml index a4da126..7946692 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,5 +16,5 @@ services: - PULSE_SERVER=unix:/run/user/1000/pulse/native volumes: - /tmp/.X11-unix:/tmp/.X11-unix:ro - - /run/user/1000/pulse:/run/user/1000/pulse + - /run/user/${UID:-1000}/pulse:/run/user/${UID:-1000}/pulse - ./wahay/pulseaudio.client.conf:/etc/pulse/client.conf:ro