Last active
January 17, 2023 12:43
-
-
Save netanel246/74bc02cda07a9e4442fd729150e39501 to your computer and use it in GitHub Desktop.
elastic with kibana - security enabled on docker
This file contains 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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Per the Elasticsearch tests, it's just the password for the
elastic
user and a newline.