#!/usr/bin/bash
# https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html

docker pull docker.elastic.co/elasticsearch/elasticsearch:7.0.1

docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.0.1
# curl http://elasticsearch:9200/_cat/health

curl -XPUT -H 'Content-Type: application/json'  -T elasticsearch.json  'http://localhost:9200/app'
# https://www.elastic.co/guide/en/elasticsearch/reference/current/removal-of-types.html

curl -GET "http://localhost:9200/_cat/indices?v"
