isemaj
(Isemaj)
April 30, 2019, 8:10am
1
I read this docs about installing elasticsearch. And run the command
docker pull docker.elastic.co/elasticsearch/elasticsearch:7.0.0
And this on for kibana
docker pull docker.elastic.co/kibana/kibana:7.0.0
Then I create a docke-compose.yml
file:
version: '3'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.0.0
ports:
- 9200:9200
kibana:
image: docker.elastic.co/kibana/kibana:7.0.0
ports:
- 5601:5601
environment:
ELASTICSEARCH_HOSTS: http://localhost:9200
Then I do docker-compose up
.
I'm not really familiar with docker compose but I tried to read the docs about it. But there's still no response in either of the port. But when I run the docker container for elasticsearch alone it works but not on kibana.
klof
(Karl Lof)
April 30, 2019, 1:49pm
2
Can you try to modify the env. variable ELASTICSEARCH_HOSTS
with http://elasticsearch:9200
.
Or just remove the variable from the compose file, as by default, it's set with the proper value : https://www.elastic.co/guide/en/kibana/current/docker.html#docker-defaults .
isemaj
(Isemaj)
April 30, 2019, 10:13pm
3
Still the same. Here is the error elastic_elasticsearch_1 exited with code 78
.
klof
(Karl Lof)
May 1, 2019, 5:15am
4
This works for me :
version: '3'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.0.0
environment:
- discovery.type=single-node
ports:
- 9200:9200
kibana:
image: docker.elastic.co/kibana/kibana:7.0.0
ports:
- 5601:5601
2 Likes
isemaj
(Isemaj)
May 1, 2019, 6:56am
5
It works now. Thank you . How about the depends_on
and networks
? and what are the reasons why the previous didn't work?
system
(system)
Closed
May 29, 2019, 6:57am
6
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.