docker运行elasticsearch时增加base auth安全校验

发布于
使用如下所示环境变量,ELASTICSEARCH_USERNAME 表示用户名,ELASTICSEARCH_PASSWORD表示密码。
environment: - "discovery.type=single-node" - ELASTICSEARCH_USERNAME=elastic - ELASTICSEARCH_PASSWORD=MagicWord - xpack.security.enabled=true
原文链接 https://stackoverflow.com/questions/50832249/enable-authentication-in-elasticsearch-with-docker-environment-variable
或 匿名发表评论
找到 0 条评论