From b56316932fa25e6840a76855a398e8f54f5a99c3 Mon Sep 17 00:00:00 2001 From: Simon Date: Sat, 2 Sep 2023 11:52:00 +0700 Subject: [PATCH] fix kibana yml --- CONTRIBUTING.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 86ad7c0..9b10c2c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -165,14 +165,15 @@ bin/elasticsearch-service-tokens create elastic/kibana kibana Example docker compose, use same version as for Elasticsearch: ```yml -kibana: - image: docker.elastic.co/kibana/kibana:0.0.0 - container_name: kibana - environment: - - "ELASTICSEARCH_HOSTS=http://archivist-es:9200" - - "ELASTICSEARCH_SERVICEACCOUNTTOKEN=" - ports: - - "5601:5601" +services: + kibana: + image: docker.elastic.co/kibana/kibana:0.0.0 + container_name: kibana + environment: + - "ELASTICSEARCH_HOSTS=http://archivist-es:9200" + - "ELASTICSEARCH_SERVICEACCOUNTTOKEN=" + ports: + - "5601:5601" ``` If you want to run queries on the Elasticsearch container directly from your host with for example `curl` or something like *postman*, you might want to **publish** the port 9200 instead of just **exposing** it.