Basic configuration for stand alone Elasticsearch cluster.
Fill variables in conf_file:
TAG=7.13.1
ES_DATA=./es_data
CERTS=./certs
KIBANA_DATA=./kibana_data
SETUP_DIR=./setup
# Configure certs
CA_PASSWORD=
ELASTICSEARCH01_CERT_PASSWORD=
KIBANA_CERT_PASSWORD=
# ====================
# Configure services
ES_CLUSTER_NAME=
# password for user elastic (default)
ELASTIC_PASSWORD=
# setup kibana user
ELASTICSEARCH_USERNAME=
# setup saved objects enc key
XPACK_ENCRYPTEDSAVEDOBJECTS_ENCRYPTIONKEY=
docker-compose --env-file conf_env -f docker-compose-setup.yml up
for ca -> certs/ca
For elasticsearch instanse -> certs/es
For kibana instance -> certs/kibana
docker-compose --env-file conf_env -f docker-compose.yml up
Just visit https://{your_ip}:5601/
log in by typing your elastic and ELASTIC_PASSWORD (see Instalation)
openssl x509 -req -days 365000 -set_serial 01 -in client-req.pem -out client-cert.pem -CA ./ca/ca.crt -CAkey ./ca/ca.key
openssl verify -CAfile ./ca/ca.crt ca-cert.pem client-cert.pem