From c893f77e047a36dc5396ad4deefb4652907e07a0 Mon Sep 17 00:00:00 2001 From: Jafner <40403594+Jafner@users.noreply.github.com> Date: Thu, 9 Sep 2021 16:03:02 -0700 Subject: [PATCH] Reconcile readme with docker-compose.yml Also fix broken PUID/PGID env vars --- 5etools-docker/README.md | 27 +++++++++++---------------- 5etools-docker/docker-compose.yml | 8 ++++---- 2 files changed, 15 insertions(+), 20 deletions(-) diff --git a/5etools-docker/README.md b/5etools-docker/README.md index bf943cf3..a12c0379 100644 --- a/5etools-docker/README.md +++ b/5etools-docker/README.md @@ -43,25 +43,20 @@ However, any instructions which work for the base `httpd` (Apache) image, should Create the `~/5etools-docker/docker-compose.yml` file with your preferred text editor. Then add the following contents: ```yml -version: '3' +version: "3" services: - 5etools: - image: jafner/5etools-docker - container_name: 5etools-docker - volumes: - # to switch from a Docker-managed volume to a host directory mapping, - # comment out the "- 5etools:..." line, - # and uncomment the "- ~/5etools-docker/htdocs:..." line - # make sure the ~/5etools-docker/htdocs/download folder exists before onlining the stack - - 5etools:/usr/local/apache2/htdocs # comment this line - #- ~/5etools-docker/htdocs:/usr/local/apache2/htdocs # uncomment this line - ports: - - 80:80 -volumes: - 5etools: + 5etools-docker: + container_name: 5etools-docker + image: jafner/5etools-docker:latest + volumes: + - ~/5etools-docker/htdocs:/usr/local/apache2/htdocs + environment: + - IMG=false # set to true to download images + - PUID=1000 + - PGID=1000 ``` -This version has a persistent Docker-managed volume. If you would like to auto-load homebrew, you will need to switch to a host directory mapping, following the instructions in the Compose file. +If you would like to auto-load homebrew, you will need to follow the instructions in the Compose file. # Auto-loading homebrew To use auto-loading homebrew, you will need to use a host directory mapping as described above. diff --git a/5etools-docker/docker-compose.yml b/5etools-docker/docker-compose.yml index 8a236846..09f4872a 100644 --- a/5etools-docker/docker-compose.yml +++ b/5etools-docker/docker-compose.yml @@ -2,10 +2,10 @@ version: "3" services: 5etools-docker: container_name: 5etools-docker - image: joeyhafner/5etools-docker:latest + image: jafner/5etools-docker:latest volumes: - - ${PWD}/htdocs:/usr/local/apache2/htdocs # this assumes your docker-compose.yml file is inside a "5etools-docker" directory. + - ~/5etools-docker/htdocs:/usr/local/apache2/htdocs 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 + - PUID=1000 + - PGID=1000