Last active
February 18, 2024 14:46
-
-
Save dadevel/db95e41489cbae496fd806466db27335 to your computer and use it in GitHub Desktop.
Neo4j container with APOC and GDS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# usage: docker build -t ghcr.io/dadevel/neo4j:4.4.12 . && docker run -d --name neo4j -p 127.0.0.1:7474:7474 -p 127.0.0.1:7687:7687 -e NEO4J_AUTH=none ghcr.io/dadevel/neo4j:4.4.12 | |
FROM docker.io/library/neo4j:4.4.12 | |
# apoc version from https://neo4j-contrib.github.io/neo4j-apoc-procedures/versions.json | |
RUN wget -qO /var/lib/neo4j/plugins/apoc.jar https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/download/4.4.0.11/apoc-4.4.0.11-all.jar | |
# gds version from https://graphdatascience.ninja/versions.json | |
RUN wget -qO /var/lib/neo4j/plugins/gds.jar https://graphdatascience.ninja/neo4j-graph-data-science-2.2.3.jar | |
RUN echo 'dbms.security.procedures.unrestricted=apoc.*,gds.*' >> /var/lib/neo4j/conf/neo4j.conf && \ | |
echo 'dbms.security.procedures.allowlist=apoc.*,gds.*' >> /var/lib/neo4j/conf/neo4j.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment