Created
February 25, 2023 04:14
-
-
Save michaelact/27e05a5be7145f1b1b6ce138636d3142 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
opensearch-data01: # This is also the hostname of the container within the Docker network (i.e. https://opensearch-node1/) | |
image: public.ecr.aws/opensearchproject/opensearch:2.5.0 # Specifying the latest available image - modify if you want a specific version | |
container_name: opensearch-data01 | |
environment: | |
- network.bind_host=0.0.0.0 | |
- network.publish_host=192.168.56.141 | |
- cluster.name=nightwolf-cluster # Name the cluster | |
- node.name=opensearch-data01 # Name the node that will run in this container | |
- node.roles=data # Role of the node | |
- discovery.seed_hosts=192.168.56.151,192.168.56.152,192.168.56.153 # Nodes to look for when discovering the cluster | |
- cluster.initial_cluster_manager_nodes=opensearch-master01,opensearch-master02,opensearch-master03 # Nodes eligible to serve as cluster manager | |
- bootstrap.memory_lock=true # Disable JVM heap memory swapping | |
- "OPENSEARCH_JAVA_OPTS=-Xms1024m -Xmx1024m" # Set min and max JVM heap sizes to at least 50% of system RAM | |
ulimits: | |
memlock: | |
soft: -1 # Set memlock to unlimited (no soft or hard limit) | |
hard: -1 | |
nofile: | |
soft: 65536 # Maximum number of open files for the opensearch user - set to at least 65536 | |
hard: 65536 | |
extra_hosts: | |
- "opensearch-master01:192.168.56.151" | |
- "opensearch-master02:192.168.56.152" | |
- "opensearch-master03:192.168.56.153" | |
volumes: | |
- opensearch-data:/usr/share/opensearch/data | |
ports: | |
- 9200:9200 # REST API | |
- 9300:9300 # Cluster Communication | |
- 9600:9600 # Performance Analyzer | |
volumes: | |
opensearch-data: | |
external: true | |
networks: | |
default: | |
external: true | |
name: opensearch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
opensearch-master01: # This is also the hostname of the container within the Docker network (i.e. https://opensearch-node1/) | |
image: public.ecr.aws/opensearchproject/opensearch:2.5.0 # Specifying the latest available image - modify if you want a specific version | |
container_name: opensearch-master01 | |
environment: | |
- network.bind_host=0.0.0.0 | |
- network.publish_host=192.168.56.151 | |
- cluster.name=nightwolf-cluster # Name the cluster | |
- node.name=opensearch-master01 # Name the node that will run in this container | |
- node.roles=cluster_manager # Role of the node | |
- discovery.seed_hosts=192.168.56.151,192.168.56.152,192.168.56.153 # Nodes to look for when discovering the cluster | |
- cluster.initial_cluster_manager_nodes=opensearch-master01,opensearch-master02,opensearch-master03 # Nodes eligible to serve as cluster manager | |
- bootstrap.memory_lock=true # Disable JVM heap memory swapping | |
- "OPENSEARCH_JAVA_OPTS=-Xms1024m -Xmx1024m" # Set min and max JVM heap sizes to at least 50% of system RAM | |
ulimits: | |
memlock: | |
soft: -1 # Set memlock to unlimited (no soft or hard limit) | |
hard: -1 | |
nofile: | |
soft: 65536 # Maximum number of open files for the opensearch user - set to at least 65536 | |
hard: 65536 | |
extra_hosts: | |
- "opensearch-master01:192.168.56.151" | |
- "opensearch-master02:192.168.56.152" | |
- "opensearch-master03:192.168.56.153" | |
volumes: | |
- opensearch-data:/usr/share/opensearch/data | |
ports: | |
- 9200:9200 # REST API | |
- 9300:9300 # Cluster Communication | |
- 9600:9600 # Performance Analyzer | |
volumes: | |
opensearch-data: | |
external: true | |
networks: | |
default: | |
external: true | |
name: opensearch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
opensearch-master02: # This is also the hostname of the container within the Docker network (i.e. https://opensearch-node1/) | |
image: public.ecr.aws/opensearchproject/opensearch:2.5.0 # Specifying the latest available image - modify if you want a specific version | |
container_name: opensearch-master02 | |
environment: | |
- network.bind_host=0.0.0.0 | |
- network.publish_host=192.168.56.152 | |
- cluster.name=nightwolf-cluster # Name the cluster | |
- node.name=opensearch-master02 # Name the node that will run in this container | |
- node.roles=cluster_manager # Role of the node | |
- discovery.seed_hosts=192.168.56.151,192.168.56.152,192.168.56.153 # Nodes to look for when discovering the cluster | |
- cluster.initial_cluster_manager_nodes=opensearch-master01,opensearch-master02,opensearch-master03 # Nodes eligible to serve as cluster manager | |
- bootstrap.memory_lock=true # Disable JVM heap memory swapping | |
- "OPENSEARCH_JAVA_OPTS=-Xms1024m -Xmx1024m" # Set min and max JVM heap sizes to at least 50% of system RAM | |
ulimits: | |
memlock: | |
soft: -1 # Set memlock to unlimited (no soft or hard limit) | |
hard: -1 | |
nofile: | |
soft: 65536 # Maximum number of open files for the opensearch user - set to at least 65536 | |
hard: 65536 | |
extra_hosts: | |
- "opensearch-master01:192.168.56.151" | |
- "opensearch-master02:192.168.56.152" | |
- "opensearch-master03:192.168.56.153" | |
volumes: | |
- opensearch-data:/usr/share/opensearch/data | |
ports: | |
- 9200:9200 # REST API | |
- 9300:9300 # Cluster Communication | |
- 9600:9600 # Performance Analyzer | |
volumes: | |
opensearch-data: | |
external: true | |
networks: | |
default: | |
external: true | |
name: opensearch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
opensearch-master03: # This is also the hostname of the container within the Docker network (i.e. https://opensearch-node1/) | |
image: public.ecr.aws/opensearchproject/opensearch:2.5.0 # Specifying the latest available image - modify if you want a specific version | |
container_name: opensearch-master03 | |
environment: | |
- network.bind_host=0.0.0.0 | |
- network.publish_host=192.168.56.153 | |
- cluster.name=nightwolf-cluster # Name the cluster | |
- node.name=opensearch-master03 # Name the node that will run in this container | |
- node.roles=cluster_manager # Role of the node | |
- discovery.seed_hosts=192.168.56.151,192.168.56.152,192.168.56.153 # Nodes to look for when discovering the cluster | |
- cluster.initial_cluster_manager_nodes=opensearch-master01,opensearch-master02,opensearch-master03 # Nodes eligible to serve as cluster manager | |
- bootstrap.memory_lock=true # Disable JVM heap memory swapping | |
- "OPENSEARCH_JAVA_OPTS=-Xms1024m -Xmx1024m" # Set min and max JVM heap sizes to at least 50% of system RAM | |
ulimits: | |
memlock: | |
soft: -1 # Set memlock to unlimited (no soft or hard limit) | |
hard: -1 | |
nofile: | |
soft: 65536 # Maximum number of open files for the opensearch user - set to at least 65536 | |
hard: 65536 | |
extra_hosts: | |
- "opensearch-master01:192.168.56.151" | |
- "opensearch-master02:192.168.56.152" | |
- "opensearch-master03:192.168.56.153" | |
volumes: | |
- opensearch-data:/usr/share/opensearch/data | |
ports: | |
- 9200:9200 # REST API | |
- 9300:9300 # Cluster Communication | |
- 9600:9600 # Performance Analyzer | |
volumes: | |
opensearch-data: | |
external: true | |
networks: | |
default: | |
external: true | |
name: opensearch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment