elastic stack on docker
docker pull docker.elastic.co/elasticsearch/elasticsearch:6.3.1
docker pull docker.elastic.co/kibana/kibana:6.3.1
docker pull docker.elastic.co/logstash/logstash:6.3.1
docker push <the name of repository>/<the name of image>:<the name of tag>
- Create your docker network:
docker network create esnet
- Create the ssl certs for the environment, from elasticsearch DIR:
docker-compose -f create-certs.yml up
- copy certs directory over to the kibana directory:
- clean up unneeded certs/host folders:
- Update the elasticsearch/.env file with your password:
ELASTIC_PASSWORD=changeme
- Start elasticsearch from its directory with:
docker-compose up
- Enable the trial license:
curl -k -u elastic -XPOST https://localhost:9200/_xpack/license/start_trial?acknowledge=true
- Update kibana user:
curl -k -u elastic -XPOST "https://localhost:9200/_xpack/security/user/kibana/_password" -H 'Content-Type: application/json' -d' {"password":"changeme"}'
- Update the kibana.yml with your new kibana credentials
elasticsearch.password: "changeme"
- Start kibana from its directory with:
docker-compose up
``
curl --cacert certs/ca/ca.crt -u elastic:changeme https://es01:9200