From cc132249c3ffa31af014e898b8b1713022fe87e3 Mon Sep 17 00:00:00 2001 From: phernandez Date: Wed, 29 Apr 2026 01:31:52 -0500 Subject: [PATCH] fix(installer): mount config volume to appuser home in docker-compose MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Dockerfile creates and switches to `appuser` (home: /home/appuser), but docker-compose.yml mounted the persistent config volume at /root/.basic-memory. appuser cannot write there, so the basic-memory CLI silently re-creates config and database under /home/appuser/.basic-memory inside the container's writable layer instead of the volume — losing all state on container restart. Move the mount to /home/appuser/.basic-memory to match where the running process actually writes. Closes #729 Signed-off-by: phernandez --- docker-compose.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 79ec6a625..259e1196b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -17,7 +17,9 @@ services: volumes: # Persistent storage for configuration and database - - basic-memory-config:/root/.basic-memory:rw + # Container runs as `appuser` (Dockerfile USER directive), so the CLI + # config dir lives under /home/appuser, not /root. + - basic-memory-config:/home/appuser/.basic-memory:rw # Mount your knowledge directory (required) # Change './knowledge' to your actual Obsidian vault or knowledge directory