Skip to content

Instantly share code, notes, and snippets.

@AlessandroVaccarino
Last active March 19, 2019 08:26
Show Gist options
  • Save AlessandroVaccarino/e94c3264b3a847fe0730f6762572640d to your computer and use it in GitHub Desktop.
Save AlessandroVaccarino/e94c3264b3a847fe0730f6762572640d to your computer and use it in GitHub Desktop.
A simple shell to run Neo4j docker image
docker create \
--restart always \
--publish=7473:7473 \
--publish=7474:7474 \
--publish=7687:7687 \
--volume=/srv/neo4j/data:/data \
--volume=/srv/neo4j/logs:/logs \
--volume=/srv/neo4j/conf:/var/lib/neo4j/conf \
--env=NEO4J_AUTH=none \
--env=NEO4J_dbms_memory_pagecache_size=8G \
--env=NEO4J_dbms_memory_heap_initial__size=8G \
--env=NEO4J_dbms_memory_heap_max__size=8G \
--name neo4j \
neo4j:3.5.0
echo "dbms.security.allow_csv_import_from_file_urls=true" >> /srv/neo4j/conf/neo4j.conf
docker start neo4j
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment