Skip to content

Instantly share code, notes, and snippets.

@msramalho
Last active July 14, 2020 18:48
Show Gist options
  • Save msramalho/ac1a0a86ad8e65def4eb4ef3fe7a4a91 to your computer and use it in GitHub Desktop.
Save msramalho/ac1a0a86ad8e65def4eb4ef3fe7a4a91 to your computer and use it in GitHub Desktop.
Luanch and reset local Neo4j database on Docker for Windows and Linux

Windows

launch

docker run --publish=7474:7474 --publish=7687:7687 --env NEO4J_AUTH=none --volume=$HOME/Documents/neo4j/data:/data --volume=$HOME/Documents/neo4j/logs:/logs --volume=$HOME/Documents/neo4j/conf:/conf neo4j

reset database

docker run --rm --volume=$HOME/Documents/neo4j/conf:/conf neo4j:4.0 dump-config

Linux

launch

sudo docker run --publish=7474:7474 --publish=7687:7687 --env NEO4J_AUTH=none --volume=$HOME/neo4j/data:/data --volume=$HOME/neo4j/logs:/logs --volume=$HOME/neo4j/conf:/conf --user=$(id -u):$(id -g) -d neo4j

reset database

docker run --rm --volume=$HOME/neo4j/conf:/conf --user=$(id -u):$(id -g) neo4j:4.0 dump-config

--

bolt://10.227.107.149:7687

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment