# IMPORTANT: Neo4j data persists in a Docker named volume (hp_neo4j_data). # This survives `docker-compose down` and `docker-compose up -d` restarts. # However, if you delete the volume (docker volume rm hp_neo4j_data), all graph # data (extracted triples, entities, relationships) will be lost and must be # re-extracted via LLM calls (10-20+ minutes) or restored from the disk cache # at index_storage/graphrag_cache/neo4j_triples.pickle. services: neo4j: image: neo4j:5 container_name: hp-neo4j restart: unless-stopped ports: - "7688:7687" # Bolt protocol (mapped to 7688 to avoid conflict with other Neo4j instances) - "7475:7474" # Browser UI (mapped to 7475 to avoid conflict) environment: NEO4J_AUTH: neo4j/hp-graphrag-2024 NEO4J_PLUGINS: '["apoc"]' volumes: - hp_neo4j_data:/data volumes: hp_neo4j_data: