-
Notifications
You must be signed in to change notification settings - Fork 7k
Open
Labels
workaroundWorkaround to a problem that can't be immediately addressedWorkaround to a problem that can't be immediately addressed
Description
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.
Metadata
Metadata
Assignees
Labels
workaroundWorkaround to a problem that can't be immediately addressedWorkaround to a problem that can't be immediately addressed