I am running Kibana 6.3.0 inside docker.
However the elasticsearch.url value specified as an environment variable is not picked up when it is specified in docker-compose.yml. In this case Kibana tries to connect to localhost (default value).
docker-compose.yml:
# Kibana
kibana:
build:
context: kibana/
container_name: ${ES_KIBANA}
hostname: ${ES_KIBANA}
environment:
- server.name=${ES_KIBANA}
- elasticsearch.url=http://${ES_CLIENT1}:9200
volumes:
- ./kibana/config/kibana.yml:/usr/share/kibana/config/kibana.yml:ro
ports:
- "5601:5601"
networks:
- esnet
depends_on:
- client1
If I give the same value in kibana.yml, then in works.
kibana.yml:
elasticsearch.url: http://es-docker-client1:9200
The environment variables in docker-compose.yml are correctly resolved as seen in the output of docker-compose config:
kibana:
build:
context: /home/airvana/docker-elk/kibana
container_name: es-docker-kibana
depends_on:
- client1
environment:
elasticsearch.url: http://es-docker-client1:9200
server.name: es-docker-kibana
hostname: es-docker-kibana
networks:
esnet: null
ports:
- published: 5601
target: 5601
volumes:
- /home/airvana/docker-elk/kibana/config/kibana.yml:/usr/share/kibana/config/kibana.yml:ro
Is this a known issue? Thanks.