Installation with Docker-compose (TLS enabled)
To get an ESK up and running in Docker with security enabled, create the following compose and configuration files:
...
Make a note of the generated passwords. You must configure the kibana_system
user password in the compose file to enable Kibana to connect to Elasticsearch, and you’ll need the password for the elastic
superuser to log in to Kibana and submit requests to Elasticsearch. Therefore, set ELASTICSEARCH_PASSWORD
in the elastic-docker-tls.yml
compose file to the password generated for the kibana_system
user.
At this point, use docker-compose
to restart the ESK
Code Block | ||||
---|---|---|---|---|
| ||||
$ docker-compose -f elastic-docker-tls.yml stop
$ docker-compose -f elastic-docker-tls.yml up -d |
After the restart, now we can connect to the Kibana dashboard and verify that the service is working (remember to use the https protocol). As already seen, you can tear down the containers, network, and volumes by running docker-compose -f elastic-docker-tls.yml down -v
.