Install plugins in dockerized neo4j

Hi community, I'm trying to install Neo4j Graph Algorithms plugin in a dockerized neo4j. I'm using Ubuntu and all install buttons are disabled in Neo4j Desktop.

I have downloaded the neo4j-graph-algorithms-3.5.14.0-standalone.jar and I have copped it in the plugins directory of neo4j container volume.

Questions:
1- How to install a plugin in dockerized neo4j?
2- How to make sure that the plugin has installed successfully in neo4j?
3- Why all buttons are disabled in Neo4j Desktop, in my Ubuntu, while even I'm online?

Can you post your yml file or your docker run commands?

You would need to add:

  • NEO4J_dbms_security_procedures_unrestricted=apoc.,algo.
  • NEO4J_dbms_security_procedures_whitelist=apoc.,algo.
1 Like

Thanks @david.fauth .let me check and share the results.:pray:

very recent versions of the docker container automate downloading and configuring addon libraries. Currently you can use apoc, algo, and graphql. See https://twitter.com/EastlondonDev/status/1177671998325047296

1 Like

Thanks, @stefan.armbruster, I have added the environment variable which was mentioned in the tweet, but for this docker-compose and now it's working well:

version: '3'

services:
  neo4j:
    image: neo4j:latest
    network_mode: "bridge"
    ports:
      - "7474:7474"
      - "7687:7687"
    environment:
      - NEO4J_dbms_security_procedures_unrestricted=apoc.*,algo.*
      - NEO4J_dbms_security_procedures_whitelist=apoc.*,algo.*
      - NEO4J_apoc_import_file_enabled=true
      - NEO4J_dbms_shell_enabled=true
      - NEO4JLABS_PLUGINS=["apoc", "graph-algorithms"]
    volumes:
      - ./volume/plugins:/plugins
      - ./volume/data:/data
      - ./volume/import:/import

docker-compose log:

neo4j_1  | Fetching versions.json for Plugin 'apoc' from https://neo4j-contrib.github.io/neo4j-apoc-procedures/versions.json
neo4j_1  | Installing Plugin 'apoc' from https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/download/3.5.0.6/apoc-3.5.0.6-all.jar to /plugins/apoc.jar 
neo4j_1  | Fetching versions.json for Plugin 'graph-algorithms' from https://neo4j-contrib.github.io/neo4j-graph-algorithms/versions.json
neo4j_1  | Installing Plugin 'graph-algorithms' from https://s3-eu-west-1.amazonaws.com/com.neo4j.graphalgorithms.dist/neo4j-graph-algorithms-3.5.14.0-standalone.jar to /plugins/graph-algorithms.jar 
neo4j_1  | Active database: graph.db
neo4j_1  | Directories in use:
neo4j_1  |   home:         /var/lib/neo4j
neo4j_1  |   config:       /var/lib/neo4j/conf
neo4j_1  |   logs:         /logs
neo4j_1  |   plugins:      /plugins
neo4j_1  |   import:       /import
neo4j_1  |   data:         /var/lib/neo4j/data
neo4j_1  |   certificates: /var/lib/neo4j/certificates
neo4j_1  |   run:          /var/lib/neo4j/run
neo4j_1  | Starting Neo4j.
neo4j_1  | 2020-01-15 09:34:55.248+0000 WARN  Unknown config option: dbms.shell.enabled
neo4j_1  | 2020-01-15 09:34:55.262+0000 INFO  ======== Neo4j 3.5.14 ========
neo4j_1  | 2020-01-15 09:34:55.271+0000 INFO  Starting...
neo4j_1  | 2020-01-15 09:35:03.123+0000 INFO  Bolt enabled on 0.0.0.0:7687.
neo4j_1  | 2020-01-15 09:35:04.485+0000 INFO  Started.
neo4j_1  | 2020-01-15 09:35:05.450+0000 INFO  Remote interface available at http://localhost:7474/

thanks, guys. @stefan.armbruster, @david.fauth :pray:

2 Likes