From 7591ea2f1996956259794abd1c86eed961535692 Mon Sep 17 00:00:00 2001 From: Antoine Cotten Date: Thu, 5 Dec 2019 15:26:53 +0100 Subject: [PATCH] Set discovery.type option in Compose file for easier override ref. #410 --- docker-compose.yml | 3 +++ docker-stack.yml | 3 +++ elasticsearch/config/elasticsearch.yml | 5 ----- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 6936be0..a590b5b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,6 +20,9 @@ services: environment: ES_JAVA_OPTS: "-Xmx256m -Xms256m" ELASTIC_PASSWORD: changeme + # 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: - elk diff --git a/docker-stack.yml b/docker-stack.yml index 4883a27..42f20b5 100644 --- a/docker-stack.yml +++ b/docker-stack.yml @@ -13,6 +13,9 @@ services: environment: ES_JAVA_OPTS: "-Xmx256m -Xms256m" ELASTIC_PASSWORD: changeme + # 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: - elk deploy: diff --git a/elasticsearch/config/elasticsearch.yml b/elasticsearch/config/elasticsearch.yml index 39bfd40..86822dd 100644 --- a/elasticsearch/config/elasticsearch.yml +++ b/elasticsearch/config/elasticsearch.yml @@ -5,11 +5,6 @@ cluster.name: "docker-cluster" network.host: 0.0.0.0 -## 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 - ## X-Pack settings ## see https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-xpack.html #