This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.5' | |
services: | |
keystore: | |
build: | |
context: elasticsearch/ | |
args: | |
ELK_VERSION: ${ELK_VERSION} | |
command: bash /setup/setup-keystore.sh | |
user: "0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.5' | |
# will contain all elasticsearch data. | |
volumes: | |
elasticsearch-data: | |
secrets: | |
elasticsearch.keystore: | |
file: ./secrets/elasticsearch.keystore |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ELK_VERSION=7.7.0 | |
ELASTIC_USERNAME=elastic | |
ELASTIC_PASSWORD=changeme |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
COMPOSE_PROJECT_NAME=elastic | |
ELK_VERSION=7.7.0 | |
#----------- Resources --------------------------# | |
ELASTICSEARCH_HEAP=1024m | |
LOGSTASH_HEAP=512m | |
#----------- Hosts and Ports --------------------# | |
# To be able to further "de-compose" the compose files, get hostnames from environment variables instead. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Exit on Error | |
set -e | |
OUTPUT_DIR=/secrets | |
CA_FILE=$OUTPUT_DIR/elastic-stack-ca.p12 | |
CERT_FILE=$OUTPUT_DIR/elastic-certificates.p12 | |
printf "====== Generating Elasticsearch Certifications ======\n" | |
printf "=====================================================\n" | |
if [ -f "$CA_FILE" ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Exit on Error | |
set -e | |
OUTPUT_DIR=/secrets | |
CA_FILE=$OUTPUT_DIR/elastic-stack-ca.p12 | |
CERT_FILE=$OUTPUT_DIR/elastic-certificates.p12 | |
printf "====== Generating Elasticsearch Certifications ======\n" | |
printf "=====================================================\n" | |
if [ -f "$CA_FILE" ]; then |
OlderNewer