To start docker-compose follow folling steps
-
Create docker volumes esdata1 and esdata2
docker volume create esdata1
docker volume create esdata2 -
Docker up
docker-compose up
-
Check cluster is running/health
-
To destroy docker
docker-compose down
docker-compose down -v ( Warn: destroy volume to) -
Generate Data movie dataset reside in sample/movies.json
you can create your own data set using following link, you may need to format documents and delete extra parenthesis, can be done easily using notepad++ or sed , use this code if you don't find the fork
[ { 'repeat(100, 50)': { _id: '{{objectId()}}', title: 'Blog -Title {{lorem(3, "words")}}', author: { first: '{{firstName()}}', last: '{{surname()}}' }, comments: [ { 'repeat(0,5)': { text: '{{lorem(10)}}', name: '{{firstName()}} {{surname()}}' } } ] } } ]