mhelvens / docker-node-neo4j-example

an example docker image with a node.js server that uses neo4j
MIT License
0 stars 0 forks source link

Persisting Neo4j data #2

Open snewhouse opened 8 years ago

snewhouse commented 8 years ago

Hi, have you tried something like this?

--volume=$HOME/neo4j/data:/data : will add a volume (/data) to allow the database to be persisted outside its container

docker run \
--publish=7474:7474 \
--publish=80:80 \
--volume=$HOME/neo4j/data:/data \
mhelvens/docker-node-neo4j-example:latest

more soon

mhelvens commented 8 years ago

Yep. Sure. That's been the obvious way to go. Although as I understand it, Docker now supports in-container storage of some sort, so the user of our image doesn't have to keep track of a directory anywhere.