Skip to content

Commit 151504f

Browse files
committed
Docker: ES requires disabling security to work
Without this setting, I was getting this issue ``` search_1 | {"@timestamp":"2023-10-19T16:13:29.226Z", "log.level":"ERROR", "message":"node validation exception\n[1] bootstrap checks failed. You must address the points described in the following [1] lines before starting Elasticsearch.\nbootstrap check failure [1] of [1]: The default value for [xpack.security.enabled] has changed in the current version. Security features were implicitly disabled for this node but they would now be enabled, possibly preventing access to the node. See https://www.elastic.co/guide/en/elasticsearch/reference/8.10/security-minimal-setup.html to configure security, or explicitly disable security by setting [xpack.security.enabled] to \"false\" in elasticsearch.yml before restarting the node.", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.bootstrap.Elasticsearch","elasticsearch.node.name":"search","elasticsearch.cluster.name":"docker-cluster"} ``` After disabling it, the search container worked.
1 parent f90e6a8 commit 151504f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dockerfiles/docker-compose-search.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ services:
2424
- node.name=search
2525
- cluster.routing.allocation.disk.threshold_enabled=false
2626
- cluster.info.update.interval=30m
27+
- xpack.security.enabled=false
2728
- "ES_JAVA_OPTS=-Xms128m -Xmx128m"
2829
- ELASTIC_PASSWORD=password
2930
ports:

0 commit comments

Comments
 (0)