vi docker-compose.yml To get Elasticsearch cluster and kibana up and running in Docker, you can use Docker Compose. If you don’t want to expose port 9200 and instead use a reverse proxy, replace 9200:9200 with 127.0.0.1:9200:9200 in the docker-compose.yml file. Elasticsearch will then only be accessible from the host machine itself(www.elastic.co/guide/en/elasticsearch/reference/current/docker.h..