🗃️ readme: rename rootfs/ to volumes/ for compose context 🗃️

Aligns README install/run snippets with the new convention split:
rootfs/ for Dockerfile-build content (image filesystem), volumes/
for docker-compose host bind-mounts. Compose mounts, host bind
paths, and runtime data dirs are renamed; Dockerfile COPY/ADD
sources (where present) are preserved.

README.md
This commit is contained in:
2026-05-05 14:35:47 -04:00
parent c1626c3570
commit 27736e8e6a
+6 -6
View File
@@ -19,17 +19,17 @@ dockermgr update postgres
## Install and run container ## Install and run container
```shell ```shell
mkdir -p "$HOME/.local/share/srv/docker/postgres/rootfs" mkdir -p "$HOME/.local/share/srv/docker/postgres/volumes"
git clone "https://github.com/dockermgr/postgres" "$HOME/.local/share/CasjaysDev/dockermgr/postgres" git clone "https://github.com/dockermgr/postgres" "$HOME/.local/share/CasjaysDev/dockermgr/postgres"
cp -Rfva "$HOME/.local/share/CasjaysDev/dockermgr/postgres/rootfs/." "$HOME/.local/share/srv/docker/postgres/rootfs/" cp -Rfva "$HOME/.local/share/CasjaysDev/dockermgr/postgres/rootfs/." "$HOME/.local/share/srv/docker/postgres/volumes/"
docker run -d \ docker run -d \
--restart always \ --restart always \
--privileged \ --privileged \
--name casjaysdevdocker-postgres \ --name casjaysdevdocker-postgres \
--hostname postgres \ --hostname postgres \
-e TZ=${TIMEZONE:-America/New_York} \ -e TZ=${TIMEZONE:-America/New_York} \
-v "$HOME/.local/share/srv/docker/casjaysdevdocker-postgres/rootfs/data:/data:z" \ -v "$HOME/.local/share/srv/docker/casjaysdevdocker-postgres/volumes/data:/data:z" \
-v "$HOME/.local/share/srv/docker/casjaysdevdocker-postgres/rootfs/config:/config:z" \ -v "$HOME/.local/share/srv/docker/casjaysdevdocker-postgres/volumes/config:/config:z" \
-p 80:80 \ -p 80:80 \
casjaysdevdocker/postgres:latest casjaysdevdocker/postgres:latest
``` ```
@@ -46,8 +46,8 @@ services:
- TZ=America/New_York - TZ=America/New_York
- HOSTNAME=postgres - HOSTNAME=postgres
volumes: volumes:
- "$HOME/.local/share/srv/docker/casjaysdevdocker-postgres/rootfs/data:/data:z" - "$HOME/.local/share/srv/docker/casjaysdevdocker-postgres/volumes/data:/data:z"
- "$HOME/.local/share/srv/docker/casjaysdevdocker-postgres/rootfs/config:/config:z" - "$HOME/.local/share/srv/docker/casjaysdevdocker-postgres/volumes/config:/config:z"
ports: ports:
- 80:80 - 80:80
restart: always restart: always