Docker configurations
Setting up a local environment
docker run \
--name elasticsearch \
--net elastic \
-p 9200:9200 \
-p 9300:9300 \
-e "discovery.type=single-node" \
-e "xpack.security.enabled=true" \
-t docker.elastic.co/elasticsearch/elasticsearch:8.5.2
Your local environment has to run in a single-node mode for it to work