From 9ccb2dc05f39e8fe4714fc567f8a8c3ca6482fe4 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 14 Dec 2024 17:46:52 +0100 Subject: [PATCH] Update Elastic Docker images to v8 (major) (#17167) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Zoltán Lehóczky --- .../reference/modules/Elasticsearch/README.md | 3 +-- .../modules/Elasticsearch/docker-compose.yml | 18 +++++++++++++++--- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/src/docs/reference/modules/Elasticsearch/README.md b/src/docs/reference/modules/Elasticsearch/README.md index 83aeee5f9bc..abb013ae6dd 100644 --- a/src/docs/reference/modules/Elasticsearch/README.md +++ b/src/docs/reference/modules/Elasticsearch/README.md @@ -28,8 +28,7 @@ Then exit any WSL instance, `wsl --shutdown`, and restart. vm.max_map_count = 262144 ``` -Elasticsearch v7.17.5 Docker Compose file : -[docker-compose.yml](docker-compose.yml) +Elasticsearch Docker Compose file (check the current Elasticsearch version in the file if you need to run a specific version): [docker-compose.yml](docker-compose.yml) - Copy this file in a folder named Elasticsearch somewhere safe. - Open up a Terminal or Command Shell in this folder. diff --git a/src/docs/reference/modules/Elasticsearch/docker-compose.yml b/src/docs/reference/modules/Elasticsearch/docker-compose.yml index 0115df5a788..489ab02b749 100644 --- a/src/docs/reference/modules/Elasticsearch/docker-compose.yml +++ b/src/docs/reference/modules/Elasticsearch/docker-compose.yml @@ -1,7 +1,7 @@ version: '2.2' services: es01: - image: docker.elastic.co/elasticsearch/elasticsearch:7.17.26 + image: docker.elastic.co/elasticsearch/elasticsearch:8.16.1 container_name: es01 environment: - node.name=es01 @@ -10,6 +10,10 @@ services: - cluster.initial_master_nodes=es01,es02 - bootstrap.memory_lock=true - "ES_JAVA_OPTS=-Xms512m -Xmx512m" + # Disable security features + - xpack.security.enabled=false + - xpack.security.http.ssl.enabled=false + - xpack.security.transport.ssl.enabled=false ulimits: memlock: soft: -1 @@ -21,7 +25,7 @@ services: networks: - elastic es02: - image: docker.elastic.co/elasticsearch/elasticsearch:7.17.26 + image: docker.elastic.co/elasticsearch/elasticsearch:8.16.1 container_name: es02 environment: - node.name=es02 @@ -30,6 +34,10 @@ services: - cluster.initial_master_nodes=es01,es02 - bootstrap.memory_lock=true - "ES_JAVA_OPTS=-Xms512m -Xmx512m" + # Disable security features + - xpack.security.enabled=false + - xpack.security.http.ssl.enabled=false + - xpack.security.transport.ssl.enabled=false ulimits: memlock: soft: -1 @@ -40,9 +48,13 @@ services: - elastic kibana: container_name: kibana - image: docker.elastic.co/kibana/kibana:7.17.26 + image: docker.elastic.co/kibana/kibana:8.16.1 environment: ELASTICSEARCH_HOSTS: '["http://es01:9200","http://es02:9200"]' + # Disable security features in Kibana + ELASTICSEARCH_USERNAME: elastic + ELASTICSEARCH_PASSWORD: + XPACK_SECURITY_ENABLED: false networks: - elastic depends_on: