Set up a Elastic Kibana stack with TLS enabled in a few minutes. Base taken from elastic and this tutorial.
Steps to follow:
-
Clone repository
-
Generate certificates
docker-compose -f create-certs.yml run --rm create_certs
-
Bring up elastic and kibana
docker-compose up -d
-
Generate Elastic passwords'
- Automatic
docker exec es01 /bin/bash -c "bin/elasticsearch-setup-passwords auto --batch --url https://es01:9200"
- Interactive
sudo docker exec -it es01 /bin/bash -c "bin/elasticsearch-setup-passwords interactive --url https://es01:9200"
-
Update new kibana_system password in
docker-compose.yml
and restart stack
Done!