我在本地的一个码头容器中运行一个OpenSearch实例。我在它旁边添加了一个OpenSearch仪表板容器,但是当我在浏览器中访问http://localhost:5601时,会有一个登录屏幕。如何禁用登录页面?这只是为了当地的发展。
我的docker-compose.yml
opensearch:
image: opensearchproject/opensearch
container_name: opensearch-local
ports:
- "9200:9200"
environment:
discovery.type: single-node
plugins.security.disabled: true
opensearch-dashboards:
image: opensearchproject/opensearch-dashboards
container_name: opensearch-dashboards
ports:
- 5601:5601
expose:
- "5601"
environment:
OPENSEARCH_HOSTS: '["http://opensearch-local:9200"]'
depends_on:
- opensearch发布于 2022-10-24 08:08:12
有一个环境变量-- DISABLE_SECURITY_DASHBOARDS_PLUGIN --您可以设置为禁用OpenSearch仪表板容器的安全性。我将opensearch-dashboard服务的opensearch-dashboard配置更改为:
environment:
OPENSEARCH_HOSTS: '["http://opensearch-local:9200"]'
DISABLE_SECURITY_DASHBOARDS_PLUGIN: true在这里发现的是:https://github.com/opensearch-project/OpenSearch-Dashboards/issues/942#issuecomment-1081187658和https://github.com/opensearch-project/OpenSearch/issues/1598#issuecomment-978189603
https://stackoverflow.com/questions/74178194
复制相似问题