This commit is contained in:
huaqingxu
2026-03-06 23:09:44 +08:00
parent ba8e1865ed
commit 84d210829d
4 changed files with 44 additions and 8 deletions

View File

@@ -22,6 +22,7 @@ services:
- PYTHONUNBUFFERED=1 # Ensures Python output is sent straight to terminal
depends_on:
- ollama
- neo4j
# ollama:
# condition: service_healthy
@@ -43,6 +44,29 @@ services:
- "11434:11434"
# profiles: ["gpu"]
neo4j:
image: neo4j:5.26.4
networks:
- mem0_network
# healthcheck:
# test: wget http://localhost:7687 || exit 1
# interval: 1s
# timeout: 10s
# retries: 20
# start_period: 90s
ports:
- "8474:7474" # HTTP
- "8687:7687" # Bolt
volumes:
- ./data/neo4j_data:/data
environment:
- NEO4J_AUTH=neo4j/mem0graph
- NEO4J_PLUGINS=["apoc"] # Add this line to install APOC
- NEO4J_apoc_export_file_enabled=true
- NEO4J_apoc_import_file_enabled=true
- NEO4J_apoc_import_file_use__neo4j__config=true
volumes:
ollama_data: {}