From 08824ad4a9369466e991494d3efd78062e22ff90 Mon Sep 17 00:00:00 2001 From: Peter Alcock Date: Thu, 17 Aug 2017 14:55:48 -0400 Subject: [PATCH] Fix ES hostname resolution for kibana/logstash Without linking the containers with explicitly declared container name mappings, the "elasticsearch" hostname is not being resolved by the kibana or logstash containers. This fixes that. --- docker-compose.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 30e010ab..ea35c48e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -26,7 +26,7 @@ services: # - my-path:/etc/logstash/conf.d links: - kibana - - elasticsearch + - elasticsearch:elasticsearch ports: - "5000:5000" networks: @@ -59,6 +59,8 @@ services: - docker_elk depends_on: - elasticsearch + links: + - elasticsearch:elasticsearch entrypoint: sh wait-for-it.sh elasticsearch # environment: # - "WAZUH_KIBANA_PLUGIN_URL=http://your.repo/wazuhapp-2.0_5.4.2.zip"