# Exit on Error set -e # Setting Bootstrap Password echo "Setting bootstrap.password..." (echo "$ELASTIC_PASSWORD" | elasticsearch-keystore add -x 'bootstrap.password') # ----- Setting Secrets ## Add Additional Config # 1- Copy the below commented block, uncomment it, and replace , , and . # 2- Pass to setup container in `docker-compose-setup.yml` ## Setting #echo "Setting ..." #(echo "$" | elasticsearch-keystore add -x '') # ----- Setting S3 Secrets ## Setting S3 Access Key #echo "Setting S3 Access Key..." #(echo "$AWS_ACCESS_KEY_ID" | elasticsearch-keystore add -x 's3.client.default.access_key') # ## Setting S3 Secret Key #echo "Setting S3 Secret Key..." #(echo "$AWS_SECRET_ACCESS_KEY" | elasticsearch-keystore add -x 's3.client.default.secret_key')