version: '3' services: odfe-node1: image: opensearchproject/opensearch:2.6.0 container_name: odfe-node1 environment: - cluster.name==odfe-cluster - node.name=odfe-node1 - discovery.type=single-node - plugins.security.ssl.http.enabled=false - bootstrap.memory_lock=true # along with the memlock settings below, disables swapping - "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM ulimits: memlock: soft: -1 hard: -1 nofile: soft: 65536 # maximum number of open files for the OpenSearch user, set to at least 65536 on modern systems hard: 65536 ports: - 9200:9200 - 9600:9600 # required for Performance Analyzer networks: - opensearch-net opensearch-dashboards: image: opensearchproject/opensearch-dashboards:2.6.0 container_name: opensearch-dashboards ports: - 5601:5601 expose: - "5601" environment: OPENSEARCH_HOSTS: '["http://odfe-node1:9200"]' networks: - opensearch-net volumes: opensearch-data1: networks: opensearch-net: