Skip to content

Commit

Permalink
[DOC] Update Persist Keystore via Docker
Browse files Browse the repository at this point in the history
From feedback from ES Devs summarized in [this Elastic Discuss](https://discuss.elastic.co/t/persist-elasticsearch-kibana-keystores-with-docker/283099), Adding to [this doc section](https://www.elastic.co/guide/en/kibana/7.14/docker.html#bind-mount-config) information on persisting keystores. [ES related PR](elastic/elasticsearch#77155)
  • Loading branch information
stefnestor authored Sep 1, 2021
1 parent cf8ab3b commit 4b171e4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/setup/docker.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,16 @@ services:
- ./kibana.yml:/usr/share/kibana/config/kibana.yml
--------------------------------------------

==== Persisting the Kibana keystore

By default, Kibana will auto-generate a keystore file for secure settings at start up. If you want to persist your {kibana-ref}/secure-settings.html[secure settings], you must use the `kibana-keystore` utility to bind-mount the keystore's parent-directory to the container. For example

[source,sh]
----
docker run -it --rm -v full_path_to/config:/usr/share/kibana/config -v full_path_to/data:/usr/share/kibana/data docker.elastic.co/kibana/kibana:7.14.0 bin/kibana-keystore create
docker run -it --rm -v full_path_to/config:/usr/share/kibana/config -v full_path_to/data:/usr/share/kibana/data docker.elastic.co/kibana/kibana:7.14.0 bin/kibana-keystore add test_keystore_setting
----

[float]
[[environment-variable-config]]
==== Environment variable configuration
Expand Down

0 comments on commit 4b171e4

Please sign in to comment.