Skip to content

Commit cd2b8c4

Browse files
committed
Document index command usage with Docker and Docker Compose
1 parent d2abada commit cd2b8c4

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,20 @@ docker run --rm \
8484
ghcr.io/prih/mcp-graph-memory serve --config /data/config/graph-memory.yaml --reindex
8585
```
8686

87+
To index once and exit (useful in CI or as a pre-start step):
88+
89+
```bash
90+
# Docker
91+
docker run --rm \
92+
-v $(pwd)/graph-memory.yaml:/data/config/graph-memory.yaml:ro \
93+
-v /path/to/my-app:/data/projects/my-app \
94+
-v graph-memory-models:/data/models \
95+
ghcr.io/prih/mcp-graph-memory index --config /data/config/graph-memory.yaml
96+
97+
# Docker Compose (uses volumes defined in your compose file)
98+
docker compose run --rm graph-memory index --config /data/config/graph-memory.yaml
99+
```
100+
87101
> **Multiple projects**: mount each project directory separately and add entries to `graph-memory.yaml`. The config file is watched for changes — add or remove projects without restarting the container.
88102
89103
## What it does

ui/src/content/help/guides/mcp-setup.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,20 @@ docker run -d \
101101

102102
Then connect your MCP client to `http://localhost:3000/mcp/my-app`.
103103

104+
To index once and exit without starting the server:
105+
106+
```bash
107+
# Docker
108+
docker run --rm \
109+
-v $(pwd)/graph-memory.yaml:/data/config/graph-memory.yaml:ro \
110+
-v /path/to/my-app:/data/projects/my-app \
111+
-v graph-memory-models:/data/models \
112+
ghcr.io/prih/mcp-graph-memory index --config /data/config/graph-memory.yaml
113+
114+
# Docker Compose (uses volumes defined in your compose file)
115+
docker compose run --rm graph-memory index --config /data/config/graph-memory.yaml
116+
```
117+
104118
## Which transport to choose?
105119

106120
| | Stdio | HTTP |

0 commit comments

Comments
 (0)