refactor: rename to Graph Memory Demo, remove OpenClaw branding

This commit is contained in:
root
2026-04-09 08:44:44 +08:00
parent d20870255b
commit 987768d835
6 changed files with 109 additions and 182 deletions

View File

@ -1,6 +1,6 @@
# OpenClaw Docker 部署
# Graph Memory Demo Docker 部署
一键启动 OpenClaw 纯图数据库对话 Demo。
一键启动纯图数据库记忆存储 Demo。
## 快速开始
@ -21,7 +21,7 @@ docker compose up -d
## 启动后
- Neo4j Browser: http://localhost:7474
- 登录用户: neo4j / openclaw123
- 登录用户: neo4j / graph123
- 应用运行在终端交互模式
## 停止
@ -46,4 +46,4 @@ docker/
├── start.sh # 一键启动脚本
├── .env.example # 环境变量模板
└── README.md # 本文件
```
```

View File

@ -3,12 +3,12 @@ version: '3.8'
services:
neo4j:
image: neo4j:5
container_name: openclaw-neo4j
container_name: graph-memory-neo4j
ports:
- "7474:7474"
- "7687:7687"
environment:
- NEO4J_AUTH=neo4j/openclaw123
- NEO4J_AUTH=neo4j/graph123
- NEO4J_PLUGINS=["apoc"]
- NEO4J_server_memory_heap_initial__size=256m
- NEO4J_server_memory_heap_max__size=512m
@ -17,34 +17,41 @@ services:
- neo4j_logs:/logs
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "return cypher-shell -u neo4j -p openclaw123 'RETURN 1' 2>/dev/null || exit 1"]
test: ["CMD-SHELL", "return cypher-shell -u neo4j -p graph123 'RETURN 1' 2>/dev/null || exit 1"]
interval: 30s
timeout: 10s
retries: 5
networks:
- graph-memory-net
openclaw:
demo:
image: python:3.11-slim
container_name: openclaw-app
container_name: graph-memory-app
ports:
- "8000:8000"
environment:
- NEO4J_URI=bolt://neo4j:7687
- NEO4J_USER=neo4j
- NEO4J_PASSWORD=openclaw123
- NEO4J_PASSWORD=graph123
- DEEPSEEK_API_KEY=${DEEPSEEK_API_KEY:-your-api-key-here}
volumes:
- ..:/app
- ../openclaw_neo4j_demo.py:/app/openclaw_neo4j_demo.py
working_dir: /app
command: >
sh -c "pip install --quiet neo4j openai && python openclaw_neo4j_demo.py"
sh -c "pip install --quiet neo4j openai && python graph_memory_demo.py"
stdin_open: true
tty: true
depends_on:
neo4j:
condition: service_healthy
restart: unless-stopped
networks:
- graph-memory-net
volumes:
neo4j_data:
neo4j_logs:
neo4j_logs:
networks:
graph-memory-net:
driver: bridge

View File

@ -1,10 +1,10 @@
#!/bin/bash
# OpenClaw Docker 一键启动脚本
# Graph Memory Demo Docker 一键启动脚本
set -e
echo "========================================"
echo "OpenClaw Docker 一键启动"
echo "Graph Memory Demo Docker 一键启动"
echo "========================================"
# 检查 Docker 和 Docker Compose
@ -42,7 +42,7 @@ fi
# 启动服务
echo ""
echo "启动 Neo4j 和 OpenClaw 应用..."
echo "启动 Neo4j 和 Graph Memory Demo 应用..."
$DOCKER_COMPOSE up -d
# 等待 Neo4j 就绪
@ -60,7 +60,7 @@ $DOCKER_COMPOSE ps
echo ""
echo "访问地址:"
echo " Neo4j Browser: http://localhost:7474"
echo " Neo4j 用户: neo4j / openclaw123"
echo " Neo4j 用户: neo4j / graph123"
echo ""
echo "停止服务: docker compose down"
echo "查看日志: docker compose logs -f"