After docker restart node4j information is gone
VlaD-T opened this issue · 2 comments
Am not sure if this is a bug or not. After we restart the docker (with docker-compose down/up) all the information (nodes, labels) is gone. Is it possible to leave it there?
Use case: currently, if I restart the docker and open the browser, I see the model I've generated last. If we rebuild it to get the data from Neo4j, then there'll be no model to show.
The data is inside the container. If you delete the container, you delete the data.
There is a difference between stopping the container (docker-compose stop
or Ctrl + C
) and destroying the container (docker-compose down
). In most cases stopping the container will be enough, than the data should not be deleted.
In future we can add a volume to the docker-compose.yml to make sure the data survives a docker-compose down
.
fixed on development