OpenSearch Security not initialized in docker

I found what was wrong

The problem was in the discovery.seed_hosts line, I needed to specify the host names

services:
  opensearch-node1: # This is also the hostname of the container within the Docker network (i.e. https://opensearch-node1/)
    image: opensearch:2.15.0 # Specifying the latest available image - modify if you want a specific version
    container_name: opensearch-node1
    environment:
      - cluster.name=opensearch-cluster # Name the cluster
      - node.name=node-01 # Name the node that will run in this container
      - discovery.seed_hosts=node-01,node-02,node-03 # Nodes to look for when discovering the cluster
      - cluster.initial_cluster_manager_nodes=node-01,node-02,node-03 # Nodes eligible to serve as cluster manager

Now i have problem with opensearch dashboard

Thanks @pablo for helping me

1 Like