mirror of
https://github.com/ivuorinen/docker-elk.git
synced 2026-01-26 11:44:06 +00:00
27 lines
842 B
Docker
27 lines
842 B
Docker
# 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 <name>, <key>, and <KEY_ENV_VALUE>.
|
|
# 2- Pass <KEY_ENV_VALUE> to setup container in `docker-compose-setup.yml`
|
|
|
|
## Setting <name>
|
|
#echo "Setting <name>..."
|
|
#(echo "$<KEY_ENV_VALUE>" | elasticsearch-keystore add -x '<key>')
|
|
|
|
|
|
# ----- 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') |