ssh 192.168.1.2
git clone git@github.com:anjingjingan/elasticsearch-cluster-docker-compose.git
ssh 192.168.1.3
git clone git@github.com:anjingjingan/elasticsearch-cluster-docker-compose.git
ssh 192.168.1.4
git clone git@github.com:anjingjingan/elasticsearch-cluster-docker-compose.git
Generate a local cluster certificate (note that req.cnf IP.1, IP.2, IP.2 fill in the actual server IP)
openssl req -x509 -nodes -days 100000 -newkey rsa:2048 -keyout ./elasticsearch/certs/elasticsearch_key.pem -out ./elasticsearch/certs/elasticsearch_cert.pem -config req.cnf -sha256
scp -r ./elasticsearch/certs root@192.168.1.3:/path/elasticsearch/
scp -r ./elasticsearch/certs root@192.168.1.4:/path/elasticsearch/
docker-compose up -d
curl -XPOST -u elastic:password 'http://localhost:9200/_security/user/kibana/_password' -H 'Content-Type: application/json' -d '{ "password" : "password" }'