From a42c1a4182705e3a27e9bd6b8a27f5e7a338437f Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 2 Feb 2020 20:28:08 +0000 Subject: [PATCH] Read PUID from variable --- ansible/roles/docker/files/emby/docker-compose.yml | 4 ++-- ansible/roles/docker/files/gotify/docker-compose.yml | 2 -- ansible/roles/docker/files/librespeed/docker-compose.yml | 4 ++-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/ansible/roles/docker/files/emby/docker-compose.yml b/ansible/roles/docker/files/emby/docker-compose.yml index 8d88772..2789059 100644 --- a/ansible/roles/docker/files/emby/docker-compose.yml +++ b/ansible/roles/docker/files/emby/docker-compose.yml @@ -5,8 +5,8 @@ services: image: linuxserver/emby:4.3.1.0-ls26 container_name: emby environment: - - PUID=3000 - - PGID=3000 + - PUID={{ docker_user.id }} + - PGID={{ docker_user.id }} - TZ=Europe/London volumes: - ./config:/config diff --git a/ansible/roles/docker/files/gotify/docker-compose.yml b/ansible/roles/docker/files/gotify/docker-compose.yml index c93ddfa..8ea7c47 100644 --- a/ansible/roles/docker/files/gotify/docker-compose.yml +++ b/ansible/roles/docker/files/gotify/docker-compose.yml @@ -4,8 +4,6 @@ services: image: gotify/server:2.0.13 container_name: gotify environment: - - PUID=3000 - - PGID=3000 - TZ=Europe/London volumes: - ./data:/app/data diff --git a/ansible/roles/docker/files/librespeed/docker-compose.yml b/ansible/roles/docker/files/librespeed/docker-compose.yml index 2cff996..9754ae8 100644 --- a/ansible/roles/docker/files/librespeed/docker-compose.yml +++ b/ansible/roles/docker/files/librespeed/docker-compose.yml @@ -4,8 +4,8 @@ services: image: linuxserver/librespeed:5.1-ls2 container_name: librespeed environment: - - PUID=3000 - - PGID=3000 + - PUID={{ docker_user.id }} + - PGID={{ docker_user.id }} - TZ=Europe/London restart: unless-stopped labels: