My kibana and elasticsearch version is 7.9.2
I added elasticsearch.username: and elasticsearch.password: in kibana.yml
and docker-compse.yaml
file. And I also added xpack.security.enabled: true
in kibana.yml and elasticsearch.yml file. After that I restarted my docker conatiner and tried accessing the kibana dashboard but it directs me to the dashboard, login page is not showing. Can anyone help me please? I have shared below my docker-compose.yaml and kibana.yml filles
@stephenb
docker-compose.yaml file
version: '3.7'
services:
elasticsearch:
build:
context: elasticsearch/
container_name: elasticsearch
volumes:
- type: bind
source: ./elasticsearch/conf/elasticsearch.yml
target: /usr/share/elasticsearch/conf/elasticsearch.yml
read_only: true
- type: volume
source: elasticsearch
target: /usr/share/elasticsearch/data
ports:
- "9200:9200"
environment:
ES_JAVA_OPTS: "-Xmx2g -Xms2g"
xpack.security.enabled: "true"
ELASTIC_PASSWORD: "test "
ELASTIC_USERNAME : "password"
# Use single node discovery in order to disable production mode and avoid bootstrap checks.
# see: https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html
discovery.type: single-node
networks:
- elastic
restart: always
logstash:
container_name: logstash
build:
context: logstash/
# command: logstash -f /conf/logstash.conf
volumes:
- type: bind
source: ./logstash/conf/logstash.yml
target: /usr/share/logstash/conf/logstash.yml
read_only: true
- type: bind
source: ./logstash/pipeline
target: /usr/share/logstash/pipeline
read_only: true
ports:
- "5043:5043"
- "5044:5044"
environment:
LS_JAVA_OPTS: "-Xmx1g -Xms1g"
xpack.monitoring.elasticsearch.url: "elasticsearch:9200"
xpack.monitoring.elasticsearch.username: "test"
xpack.monitoring.elasticsearch.password: "password"
networks:
- elastic
depends_on:
- elasticsearch
restart: always
kibana:
build:
context: kibana/
container_name: kibana
volumes:
- type: bind
source: ./kibana/conf/kibana.yml
target: /usr/share/kibana/conf/kibana.yml
read_only: true
ports:
- "5601:5601"
networks:
- elastic
depends_on:
- elasticsearch
restart: always
volumes:
elasticsearch:
networks:
elastic:
driver: bridge
Kibana.yml file-
server.name: kibana
server.host: 0.0.0.0
elasticsearch.url: http://elasticsearch:9200
monitoring.ui.container.elasticsearch.enabled: true
elasticsearch.username: "test"
elasticsearch.password: "password"