An example of deploying Elasticsearch + Kibana with docker.
Run docker-compose up -d
to start.
This stores the generated certificates in version control, which shouldn't be done in a production system, this is just for example.
A step-by-step guide: http://codingfundas.com/setting-up-elasticsearch-6-8-with-kibana-and-x-pack-security-enabled/index.html