I found what was wrong
The problem was in the opensearch.hosts:
line, I needed to add https
and added depends_on:
my docker-compose.yml
opensearch-dashboards:
image: opensearch-dashboards:2.15.0 # Make sure the version of opensearch-dashboards matches the version of opensearch installed on other nodes
container_name: opensearch-dashboards
ports:
- 5601:5601 # Map host port 5601 to container port 5601
expose:
- "5601" # Expose port 5601 for web access to OpenSearch Dashboards
environment:
OPENSEARCH_HOSTS: '["https://node-01:9200","https://node-02:9200","https://node-03:9200"]' # Define the OpenSearch nodes that OpenSearch Dashboards will query
depends_on:
- opensearch-node1
network_mode: host