From 0676f532805f3b1edbb27f1992e77d283c9c5f07 Mon Sep 17 00:00:00 2001 From: etalon Date: Sat, 13 Jun 2026 12:15:46 +0200 Subject: [PATCH] chore: bind-mount docker volumes under the repo (./volumes), gitignore them Replace the named volumes mongo-data and work-data with bind mounts to ./volumes/mongo and ./volumes/work so all runtime state lives under the repo tree. Existing data was migrated; the old named volumes were removed. The ${HOME}/.claude host-credential mounts are intentionally left as-is (must not live in the repo). Added /volumes/ to .gitignore. Co-Authored-By: Claude Fable 5 --- .gitignore | 3 +++ docker-compose.yml | 9 +++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index a507813..c1a4ed7 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,6 @@ bin/ backups/ *.test coverage.out + +# Docker volume data (bind-mounted under the repo; never committed) +/volumes/ diff --git a/docker-compose.yml b/docker-compose.yml index 7bd382d..28c0557 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,7 +13,8 @@ services: # Mongo is reachable only on the compose network; never published to the # host (ยง12). volumes: - - mongo-data:/data/db + # data lives in-repo (gitignored) so all state is under one tree + - ./volumes/mongo:/data/db healthcheck: test: ["CMD", "mongosh", "--quiet", "--eval", "db.adminCommand('ping').ok"] interval: 10s @@ -82,7 +83,7 @@ services: volumes: - ${HOME}/.claude:/home/node/.claude - ${HOME}/.claude.json:/home/node/.claude.json - - work-data:/work + - ./volumes/work:/work ports: - "127.0.0.1:8091:8091" extra_hosts: @@ -93,7 +94,3 @@ services: timeout: 5s retries: 3 start_period: 5s - -volumes: - mongo-data: - work-data: