Skip to content

Commit e9626ec

Browse files
Thomas Tupperclaude
authored andcommitted
fix: persist analytics DB to named volume in all compose configs
FOXMEMORY_ANALYTICS_DB_PATH was defaulting to /data which had no volume mount, causing stats to reset on every container restart. - compose.one.yml / compose.split.yml: point to /qdrant/storage (existing vol) - compose.graph.yml: add foxmemory_analytics_data volume mounted at /data - .env.example: document the var with a note Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent e7a7e1e commit e9626ec

4 files changed

Lines changed: 10 additions & 1 deletion

File tree

.env.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ QDRANT_COLLECTION=foxmemory
2525
QDRANT_HOST=qdrant
2626
QDRANT_PORT=6333
2727

28+
# Analytics DB — persists write/search history across restarts.
29+
# Must be on a mounted volume. Path is set per-compose-file; override here if needed.
30+
# FOXMEMORY_ANALYTICS_DB_PATH=/qdrant/storage/foxmemory-analytics.db
31+
2832
# Graph memory (Neo4j) — optional.
2933
# Set NEO4J_URL + NEO4J_PASSWORD to enable. Leave blank to disable.
3034
# NEO4J_AUTH must match NEO4J_PASSWORD (format: neo4j/<password>).

compose.graph.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,19 @@ services:
4040
QDRANT_PORT: "6333"
4141
QDRANT_COLLECTION: ${QDRANT_COLLECTION:-foxmemory}
4242
MEM0_HISTORY_DB_PATH: /tmp/history.db
43-
QDRANT_STORAGE_PATH: /qdrant/storage
43+
FOXMEMORY_ANALYTICS_DB_PATH: /data/foxmemory-analytics.db
4444
# Graph memory — leave NEO4J_URL unset to disable
4545
NEO4J_URL: ${NEO4J_URL:-}
4646
NEO4J_USERNAME: ${NEO4J_USERNAME:-neo4j}
4747
NEO4J_PASSWORD: ${NEO4J_PASSWORD:-}
4848
MEM0_GRAPH_LLM_MODEL: ${MEM0_GRAPH_LLM_MODEL:-gpt-4o-mini}
49+
volumes:
50+
- foxmemory_analytics_data:/data
4951
depends_on:
5052
- qdrant
5153
- neo4j
5254

5355
volumes:
5456
foxmemory_store_data:
5557
foxmemory_neo4j_data:
58+
foxmemory_analytics_data:

compose.one.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ services:
3939
- QDRANT_COLLECTION=${QDRANT_COLLECTION}
4040
- MEM0_HISTORY_DB_PATH=/tmp/history.db
4141
- QDRANT_STORAGE_PATH=/qdrant/storage
42+
- FOXMEMORY_ANALYTICS_DB_PATH=/qdrant/storage/foxmemory-analytics.db
4243
# Graph memory — leave NEO4J_URL unset to disable
4344
- NEO4J_URL=${NEO4J_URL:-}
4445
- NEO4J_USERNAME=${NEO4J_USERNAME:-neo4j}

compose.split.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ services:
3737
- QDRANT_COLLECTION=${QDRANT_COLLECTION}
3838
- MEM0_HISTORY_DB_PATH=/tmp/history.db
3939
- QDRANT_STORAGE_PATH=/qdrant/storage
40+
- FOXMEMORY_ANALYTICS_DB_PATH=/qdrant/storage/foxmemory-analytics.db
4041
# Graph memory — leave NEO4J_URL unset to disable
4142
- NEO4J_URL=${NEO4J_URL:-}
4243
- NEO4J_USERNAME=${NEO4J_USERNAME:-neo4j}

0 commit comments

Comments
 (0)