From c7eb8c3f760b5ed28edfd6b50ed62fda0c071b26 Mon Sep 17 00:00:00 2001 From: Francesc Gordillo Date: Fri, 29 May 2020 22:09:38 +0200 Subject: [PATCH] Update README --- README.md | 10 ++++++---- docker-compose.yml | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) 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