From 690316e5415d5ce289c50543994353c015f1851e Mon Sep 17 00:00:00 2001 From: nmemmert <67961292+nmemmert@users.noreply.github.com> Date: Wed, 21 Oct 2026 14:36:22 -0400 Subject: [PATCH] Compose: fixed host data path and root user so data persists across container recreation Co-Authored-By: Claude Sonnet 5.5 --- README.md | 2 +- compose.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3be0b2d..1f911cc 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Add a repository secret `REGISTRY_TOKEN` (a Gitea access token with `write:packa ## Run with plain Docker ```bash mkdir -p data && cp /path/to/Bills_Tracker.xlsx data/ -AppID=money PUID=1000 PGID=1000 TZ=America/New_York docker compose up -d # then edit the bind path in compose.yaml or symlink +TZ=America/New_York docker compose up -d # data is stored in /DATA/AppData/money/data on the host ``` ## Starting fresh diff --git a/compose.yaml b/compose.yaml index 26f313d..ead5b3e 100644 --- a/compose.yaml +++ b/compose.yaml @@ -4,14 +4,14 @@ services: image: git.necloud.us/nate/money:latest container_name: money restart: unless-stopped - user: $PUID:$PGID + user: "0:0" ports: - target: 8765 published: "8765" protocol: tcp volumes: - type: bind - source: /DATA/AppData/$AppID/data + source: /DATA/AppData/money/data target: /data environment: - DATA_DIR=/data