about summary refs log tree commit diff
path: root/R2R/compose.neo4j.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'R2R/compose.neo4j.yaml')
-rwxr-xr-xR2R/compose.neo4j.yaml42
1 files changed, 42 insertions, 0 deletions
diff --git a/R2R/compose.neo4j.yaml b/R2R/compose.neo4j.yaml
new file mode 100755
index 00000000..f3d709ca
--- /dev/null
+++ b/R2R/compose.neo4j.yaml
@@ -0,0 +1,42 @@
+
+networks:
+  r2r-network:
+    name: r2r-network
+    
+services:
+  r2r:
+    depends_on:
+      neo4j:
+        condition: service_healthy
+
+  neo4j:
+    image: neo4j:5.21.0
+    ports:
+      - "7474:7474"  # HTTP
+      - "7687:7687"  # Bolt
+    environment:
+      - NEO4J_AUTH=${NEO4J_AUTH:-neo4j/ineedastrongerpassword}
+      - NEO4J_dbms_memory_pagecache_size=${NEO4J_PAGECACHE_SIZE:-512M}
+      - NEO4J_dbms_memory_heap_max__size=${NEO4J_HEAP_SIZE:-512M}
+      - NEO4J_apoc_export_file_enabled=true
+      - NEO4J_apoc_import_file_enabled=true
+      - NEO4J_apoc_import_file_use__neo4j__config=true
+      - NEO4JLABS_PLUGINS=["apoc"]
+      - NEO4J_dbms_security_procedures_unrestricted=apoc.*
+      - NEO4J_dbms_security_procedures_allowlist=apoc.*
+    volumes:
+      - neo4j_data:/data
+      - neo4j_logs:/logs
+      - neo4j_plugins:/plugins
+    networks:
+      - r2r-network
+    healthcheck:
+      test: ["CMD", "neo4j", "status"]
+      interval: 10s
+      timeout: 5s
+      retries: 5
+
+volumes:
+  neo4j_data:
+  neo4j_logs:
+  neo4j_plugins: