diff --git a/.gitignore b/.gitignore index 52f0e46a..7872df99 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,9 @@ /target .env -docker/.database docker/.env +docker/.database/neo4j/* +!docker/.database/neo4j/plugins +!docker/.database/neo4j/conf +docker/.database/redis **/.DS_Store /static \ No newline at end of file diff --git a/docker/.database/neo4j/conf/neo4j.conf b/docker/.database/neo4j/conf/neo4j.conf new file mode 100644 index 00000000..6f10bb53 --- /dev/null +++ b/docker/.database/neo4j/conf/neo4j.conf @@ -0,0 +1 @@ +db.transaction.timeout=1s \ No newline at end of file diff --git a/docker/.database/neo4j/plugins/apoc.jar b/docker/.database/neo4j/plugins/apoc.jar new file mode 100755 index 00000000..a85b2ac6 Binary files /dev/null and b/docker/.database/neo4j/plugins/apoc.jar differ diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 8a69d9bb..f128534d 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -13,6 +13,8 @@ services: - .database/neo4j/data:/data - .database/neo4j/logs:/logs - ./db-graph:/db-graph + # Mount plugins directory for APOC + - .database/neo4j/plugins:/plugins environment: NEO4J_initial_dbms_default__database: ${NEO4J_DB_NAME} # IMPORTANT: If you change the auth params and you have already created the config files, will not take effect @@ -25,6 +27,10 @@ services: NEO4J_server_memory_heap_initial__size: 2G NEO4J_server_memory_heap_max__size: 2G # NEO4J_apoc_uuid_enabled: false + # Enable APOC + # NEO4JLABS_PLUGINS: '["apoc"]' + # NEO4J_dbms_security_procedures_unrestricted: 'apoc.*' + # NEO4J_dbms_security_procedures_allowlist: 'apoc.*' redis: