services: neo4j: image: neo4j:5.15.0-community container_name: activa_graph_db ports: - "7474:7474" # Browser UI - "7687:7687" # Python Driver environment: - NEO4J_AUTH=neo4j/activa_semantic_lab # Carica APOC e GDS automaticamente - NEO4J_PLUGINS=["apoc", "graph-data-science"] # CONFIGURAZIONE CRUCIALE PER N10S (Neosemantics) - NEO4J_dbms_security_procedures_unrestricted=n10s.*,apoc.* - NEO4J_dbms_security_procedures_allowlist=n10s.*,apoc.*,gds.* # Memoria - NEO4J_dbms_memory_heap_initial__size=1G - NEO4J_dbms_memory_heap_max__size=2G volumes: # Mappa le cartelle che hai creato tu nella root - ./neo4j/data:/data - ./neo4j/plugins:/plugins healthcheck: test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider localhost:7474 || exit 1"] interval: 10s timeout: 5s retries: 5