Skip to content

Instantly share code, notes, and snippets.

@netanel246
Last active January 17, 2023 12:43
Show Gist options
  • Save netanel246/74bc02cda07a9e4442fd729150e39501 to your computer and use it in GitHub Desktop.
Save netanel246/74bc02cda07a9e4442fd729150e39501 to your computer and use it in GitHub Desktop.
elastic with kibana - security enabled on docker
docker run --rm --link elastic:elasticsearch -p 5601:5601 -e ELASTICSEARCH_USERNAME=elastic -e ELASTICSEARCH_PASSWORD=elastic docker.elastic.co/kibana/kibana:7.6.0
docker run --rm -p 9200:9200 -p 9300:9300 --name elastic -e "xpack.security.enabled=true" -v /home/netanel/elastic/secrets:/run/secrets -e ELASTIC_PASSWORD_FILE=/run/secrets/bootstrapPassword.txt -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.6.0
@pzentenoe
Copy link

what is the example format of /run/secrets/bootstrapPassword.txt

could you share an example? please

@TravisDart
Copy link

Per the Elasticsearch tests, it's just the password for the elastic user and a newline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment