Hi, ist there anyway to persist the elasticsearch.keystore or add things to the keystore before the container starts elasticsearch?
My problem is, i need to add a client.secret before the container starts the first time and also want to persist this data after a docker-compose stop.
- I tried:
docker-compose run elasticsearch bin/elasticsearch-keystore add xpack.security.authc.realms.oidc.oidc1.rp.client_secret
But data is gone on the next startup.
- I tried to add the following to the
docker-compose.yml
elasticsearch:
...
volumes:
...
- type: bind
source: ./elasticsearch/config/elasticsearch.keystore
target: /usr/share/elasticsearch/config/elasticsearch.keystore
Also does not work, because keystore must exist before the startup. Creating an empty file before does not help, because its the wrong format.
Hi, ist there anyway to persist the
elasticsearch.keystoreor add things to the keystore before the container starts elasticsearch?My problem is, i need to add a
client.secretbefore the container starts the first time and also want to persist this data after adocker-compose stop.docker-compose run elasticsearch bin/elasticsearch-keystore add xpack.security.authc.realms.oidc.oidc1.rp.client_secretBut data is gone on the next startup.
docker-compose.ymlAlso does not work, because keystore must exist before the startup. Creating an empty file before does not help, because its the wrong format.