From 1a758476eb13dd198f40294f8c2785b267dc5e51 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 --- docker-compose.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index ce88182..8a23684 100644 --- a/docker-compose.yml +++ b/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