아빠는 개발자

[docker] docker compose elasticsearch8.8.1 본문

Docker

[docker] docker compose elasticsearch8.8.1

father6019 2023. 8. 27. 15:03
728x90
반응형

전체 소스는 

https://github.com/900gle/es8.8.1

 

GitHub - 900gle/es8.8.1

Contribute to 900gle/es8.8.1 development by creating an account on GitHub.

github.com

elasticsearch 랑 kibana 만 실행시키고 싶으면 docker-compose-es-kibana.yml 파일로 실행

전체는 docker-compose.yml 이나 docker-compose-full.yml 을 실행시키면 되는데 내 컴퓨터에서는 메모리가 딸려서 죽. 는. 다.

 

8.8.1

docker pull docker.elastic.co/elasticsearch/elasticsearch:8.8.1

 

 

내 로컬 경로

/Users/doo/docker/es8.8.1

docker compose -f docker-compose-es-kibana.yml up -d --build

docker-compose-es-kibana.yml

 

docker compose up -d --build

 

키바나가 안뜨길래 로그를 봤더니 - docker logs {container_id}

[2023-03-04T15:45:34.975+00:00][WARN ][plugins.reporting.config] Found 'server.host: "0.0.0.0"' in Kibana configuration. Reporting is not able to use this as the Kibana server hostname. To enable PNG/PDF Reporting to work, 'xpack.reporting.kibanaServer.hostname: localhost' is automatically set in the configuration. You can prevent this message by adding 'xpack.reporting.kibanaServer.hostname: localhost' in kibana.yml.

 

일단 이건 워닝이긴 하지만 그래도 추가 

 

[2023-03-04T15:45:36.251+00:00][ERROR][elasticsearch-service] Unable to retrieve version information from Elasticsearch nodes. connect ECONNREFUSED 172.24.0.2:9200

 

 

server.publicBaseUrlThe publicly available URL that end-users access Kibana at. Must include the protocol, hostname, port (if different than the defaults for http and https, 80 and 443 respectively), and the server.basePath (if configured). This setting cannot end in a slash (/).

 

 

Unable to retrieve version information from Elasticsearch nodes. security_exception: [security_exception] Reason: unable to authenticate user [kibana_system] for REST request [/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip]

 

키바나 패스워드를 변경했더니  kibana 가 es 에 붙지 못하는..

kibana password 는 초기패스 워드를 유지하고 키바나에 접속해서 kibana_system 계정의 패스워들르 변경했어야 하는데

그냥 changeme 로 사용

ELASTIC_VERSION=8.8.1

## Passwords for stack users
#

# User 'elastic' (built-in)
#
# Superuser role, full access to cluster management and data indices.
# https://www.elastic.co/guide/en/elasticsearch/reference/current/built-in-users.html
ELASTIC_PASSWORD='dlengus'

# User 'logstash_internal' (custom)
#
# The user Logstash uses to connect and send data to Elasticsearch.
# https://www.elastic.co/guide/en/logstash/current/ls-security.html
LOGSTASH_INTERNAL_PASSWORD='changeme'

# User 'kibana_system' (built-in)
#
# The user Kibana uses to connect and communicate with Elasticsearch.
# https://www.elastic.co/guide/en/elasticsearch/reference/current/built-in-users.html
KIBANA_SYSTEM_PASSWORD='changeme'

 

password 를 초기패스워드로 바꿔도 키바나 계정 오류가 나면

setup 볼륨을 지워서 다시 생성함 

 
 
728x90
반응형