- Install Docker version 17.05+
- Install Docker Compose version 1.6.0+
- Clone this repository
- elasticsearch
$ cd docker/elasticsearch
$ docker build --build-arg ELK_VERSION=6.5.4 --build-arg SG_VERSION=24.0 -t {docker image name}:{tag} .
- kibana
$ cd docker/kibana
$ docker build --build-arg ELK_VERSION=6.5.4 --build-arg SG_VERSION_KIBANA=17 -t {docker image name}:{tag} .
ELASTICSEARCH={elasticsearch docker image name}
KIBANA={kibana docker image name}
TAG={tag name}
$ docker-compose up -d
Search Guard must be initialized after Elasticsearch is started:
$ docker-compose exec -T elasticsearch bin/init_sg.sh