Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
11-05-2019 04:26 AM
I have docker compose file
neo:
image: neo4j:latest
ports:
- '7474:7474'
- '7473:7473'
- '7687:7687'
expose:
- 7474
environment:
- NEO4J_dbms_security_procedures_unrestricted=apoc.*
- NEO4J_apoc_import_file_enabled=true
- NEO4J_apoc_export_file_enabled=true
- NEO4J_apoc_import_file_use__neo4j__config=true
- NEO4J_dbms_shell_enabled=true
- NEO4J_AUTH=user/password
- NEO4J_HEAP_MEMORY=4G
- NEO4J_CACHE_MEMORY=2G
user: ${CURRENT_UID}
volumes:
- "neo-data:/data"
- "neo-data:/conf"
- "neo-data:/plugins"
- "neo-data:/import"
- "neo-data:/logs"
I was expecting the Neo4j container will come up with APOC installed in it .
There was no problem in Neo4j server but /plugins folder was empty also CALL apoc.config.list() was throwing error "ProcedurenotFound ..... "
To install APOC at the container I tried -
Question: Is there any way to get installed the APOC using docker compose file itself?
11-05-2019 12:26 PM
Newer version of the docker container (I think >= 3.5.11) do support a env variable NEO4JLABS_PLUGINS
being an array of plugins to integrate, e.g.
docker run -it --rm --env 'NEO4JLABS_PLUGINS=["apoc", "graph-algorithms"]' neo4j:3.5.11
11-06-2019 11:02 PM
Thanks for your input Stefan!!
I need to keep things at my docker compose file and when i tried to have
11-08-2019 01:51 AM
What is the full error message here?
11-08-2019 05:17 AM
I suspect you need to quote the value of NEO4JLABS_PLUGINS somehow. Docker compose uses YAML.
11-08-2019 05:01 AM
There is no error message, however my docker compose file brings up the neo4j instance but without APOC
05-11-2020 03:52 AM
add apoc.jar file into the plugins directory then...
change your plugins directory as:
/var/lib/neo4j/plugins
and add:
-e NEO4J_dbms_security_procedures_unrestricted=apoc.*
04-14-2021 03:55 AM
I'm using my compose like this:
version: "3.8"
services:
neo4j:
image: neo4j:4.1-enterprise
ports:
- "7474:7474"
- "7687:7687"
volumes:
- ./neo4j/data:/data
- ./neo4j/logs:/logs
environment:
- NEO4J_AUTH=neo4j/password
- NEO4J_ACCEPT_LICENSE_AGREEMENT=yes
- NEO4JLABS_PLUGINS=["graph-data-science", "apoc"]
- NEO4J_dbms_security_procedures_whitelist=gds.*, apoc.*
- NEO4J_dbms_security_procedures_unrestricted=gds.*, apoc.*
volumes:
neo4j:
06-22-2022 01:48 AM - edited 06-22-2022 01:51 AM
A bit late to the game, but this works for me:
version: '3.7'
services:
neo4j:
image: neo4j:4.4.7
hostname: neo4j
container_name: neo4j
ports:
- "7474:7474"
- "7687:7687"
environment:
- NEO4JLABS_PLUGINS=["apoc"]
Update: Oops sorry, I didn't realise that someone had already answered it correctly and their post was hidden behind the 'More replies' button!
06-22-2022 01:49 AM
This works for me:
version: '3.7'
services:
neo4j:
image: neo4j:4.4.7
hostname: neo4j
container_name: neo4j
ports:
- "7474:7474"
- "7687:7687"
environment:
- NEO4JLABS_PLUGINS=["apoc"]
All the sessions of the conference are now available online