services: neo4j: image: neo4j:5.18-community container_name: healthexpert-neo4j ports: - "7474:7474" # Neo4j Browser UI - "7687:7687" # Bolt protocol environment: - NEO4J_AUTH=neo4j/healthexpert - NEO4J_server_memory_heap_initial__size=512m - NEO4J_server_memory_heap_max__size=1G - NEO4J_PLUGINS=["apoc"] - NEO4J_dbms_security_procedures_unrestricted=apoc.* - NEO4J_dbms_security_procedures_allowlist=apoc.* volumes: - neo4j_data:/data - neo4j_logs:/logs - neo4j_import:/var/lib/neo4j/import healthcheck: test: ["CMD", "wget", "-q", "--spider", "http://localhost:7474"] interval: 10s timeout: 5s retries: 10 restart: unless-stopped volumes: neo4j_data: neo4j_logs: neo4j_import: