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 <noreply@anthropic.com>
This commit is contained in:
@@ -3,3 +3,6 @@ bin/
|
|||||||
backups/
|
backups/
|
||||||
*.test
|
*.test
|
||||||
coverage.out
|
coverage.out
|
||||||
|
|
||||||
|
# Docker volume data (bind-mounted under the repo; never committed)
|
||||||
|
/volumes/
|
||||||
|
|||||||
+3
-6
@@ -13,7 +13,8 @@ services:
|
|||||||
# Mongo is reachable only on the compose network; never published to the
|
# Mongo is reachable only on the compose network; never published to the
|
||||||
# host (§12).
|
# host (§12).
|
||||||
volumes:
|
volumes:
|
||||||
- mongo-data:/data/db
|
# data lives in-repo (gitignored) so all state is under one tree
|
||||||
|
- ./volumes/mongo:/data/db
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "mongosh", "--quiet", "--eval", "db.adminCommand('ping').ok"]
|
test: ["CMD", "mongosh", "--quiet", "--eval", "db.adminCommand('ping').ok"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
@@ -82,7 +83,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ${HOME}/.claude:/home/node/.claude
|
- ${HOME}/.claude:/home/node/.claude
|
||||||
- ${HOME}/.claude.json:/home/node/.claude.json
|
- ${HOME}/.claude.json:/home/node/.claude.json
|
||||||
- work-data:/work
|
- ./volumes/work:/work
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:8091:8091"
|
- "127.0.0.1:8091:8091"
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
@@ -93,7 +94,3 @@ services:
|
|||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
start_period: 5s
|
start_period: 5s
|
||||||
|
|
||||||
volumes:
|
|
||||||
mongo-data:
|
|
||||||
work-data:
|
|
||||||
|
|||||||
Reference in New Issue
Block a user