Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 851 Bytes

README.md

File metadata and controls

38 lines (25 loc) · 851 Bytes

Setup Elastic

Runs a docker image for a single-node elastic instance with default index created as twitter

Create Index API docs

More on the elastic API's at elastic ReST API docs

Using docker-compose

docker-compose build

docker-compose up -d couchbase

Using Dockerfile

docker build -t elastic-custom .

docker run --rm -it -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" --name elastic1 elastic-custom

To bash into the container

docker run --rm -it entrypoint=bash elastic-custom:latest

Check the default index after it runs

curl -X GET "localhost:9200/twitter?pretty"