Commit 0ff55da7 authored by Daniel Mateus Pires's avatar Daniel Mateus Pires Committed by Tao Feng

Persist data locally when running docker-amundsen-local (#225)

* Add .local/ to .gitignore

* Mount .local/ dir into elasticsearch and neo4j to persist data

* Remove .gitkeep

* Persist data when using docker-compose-local

* Documentation update
parent 3b6979df
example/backup/
example/docker/neo4j/plugins/
example/docker/es_data*
.local/
.idea/
......@@ -14,6 +14,7 @@ services:
- 7687:7687
volumes:
- ./example/docker/neo4j/conf:/conf
- ./.local/neo4j/data:/neo4j/data
networks:
- amundsennet
elasticsearch:
......@@ -23,6 +24,8 @@ services:
- 9200:9200
networks:
- amundsennet
volumes:
- ./.local/elasticsearch/data:/usr/share/elasticsearch/data
amundsensearch:
build:
context: ./amundsensearchlibrary
......
......@@ -48,5 +48,18 @@ $ git submodule update --remote
$ docker logs amundsenmetadata --tail 10 -f
```
### Local data
Local data is persisted under .local/ (at the root of the project), clean up the following directories to reset the databases:
```bash
# reset elasticsearch
rm -rf .local/elasticsearch
# reset neo4j
rm -rf .local/neo4j
```
### Troubleshooting
1. If you have made a change in `amundsen/amundsenfrontendlibrary` and do not see your changes, this could be due to your browser's caching behaviors. Either execute a hard refresh (recommended) or clear your browser cache (last resort).
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment