From d24cc36aa2b4842b45c8339af68a957e3bd5d038 Mon Sep 17 00:00:00 2001 From: Jafner <40403594+Jafner@users.noreply.github.com> Date: Thu, 9 Sep 2021 14:47:55 -0700 Subject: [PATCH] Add context-dependence for volumes and UID/GID --- 5etools-docker/docker-compose.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/5etools-docker/docker-compose.yml b/5etools-docker/docker-compose.yml index ce881825..8a236846 100644 --- a/5etools-docker/docker-compose.yml +++ b/5etools-docker/docker-compose.yml @@ -4,6 +4,8 @@ services: container_name: 5etools-docker image: joeyhafner/5etools-docker:latest volumes: - - 5etools-docker:/usr/local/apache2/htdocs + - ${PWD}/htdocs:/usr/local/apache2/htdocs # this assumes your docker-compose.yml file is inside a "5etools-docker" directory. environment: - IMG=true + - PUID=${id -u} # this sets the user ID (uid) to that of the user running the command + - PGID=${id -g} # this sets the group ID (gid) to that of the user running the command