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
docker-compose build
docker-compose up -d couchbase
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
curl -X GET "localhost:9200/twitter?pretty"