fix kibana yml

This commit is contained in:
Simon 2023-09-02 11:52:00 +07:00
parent 8dba2e240e
commit b56316932f
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

View File

@ -165,14 +165,15 @@ bin/elasticsearch-service-tokens create elastic/kibana kibana
Example docker compose, use same version as for Elasticsearch: Example docker compose, use same version as for Elasticsearch:
```yml ```yml
kibana: services:
image: docker.elastic.co/kibana/kibana:0.0.0 kibana:
container_name: kibana image: docker.elastic.co/kibana/kibana:0.0.0
environment: container_name: kibana
- "ELASTICSEARCH_HOSTS=http://archivist-es:9200" environment:
- "ELASTICSEARCH_SERVICEACCOUNTTOKEN=<your-token-here>" - "ELASTICSEARCH_HOSTS=http://archivist-es:9200"
ports: - "ELASTICSEARCH_SERVICEACCOUNTTOKEN=<your-token-here>"
- "5601:5601" 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. 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.