Setting up Elasticsearch on Docker for testing purposes

As of version 7, Elasticsearch has made some changes such that it will break if you just run the default setup in Docker. The simple change is to run the following command

docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.6.2