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
Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.