Created
March 30, 2024 23:59
-
-
Save esmarkowski/7f3ec9bfb3b0dc3604112b67410067e7 to your computer and use it in GitHub Desktop.
OpenSearch Docker Compose
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
version: '3' | |
services: | |
opensearch-node1: | |
image: opensearchproject/opensearch:latest | |
container_name: opensearch-node1 | |
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 | |
environment: | |
- discovery.seed_hosts=opensearch-node2 | |
- node.name=opensearch-node1 | |
- plugins.security.disabled=true | |
- cluster.initial_master_nodes=opensearch-node1,opensearch-node2 | |
- bootstrap.memory_lock=true | |
- "OPENSEARCH_JAVA_OPTS=-Xms3078m -Xmx3078m" | |
- OPENSEARCH_INITIAL_ADMIN_PASSWORD=A3s0p3nS3cUr1tY | |
volumes: | |
- opensearch-data1:/usr/share/opensearch/data | |
ports: | |
- 9200:9200 | |
- 9600:9600 # required for Performance Analyzer | |
networks: | |
- opensearch-net | |
opensearch-node2: | |
image: opensearchproject/opensearch:latest | |
container_name: opensearch-node2 | |
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 | |
environment: | |
- discovery.seed_hosts=opensearch-node1 | |
- node.name=opensearch-node2 | |
- plugins.security.disabled=true | |
- cluster.initial_master_nodes=opensearch-node1,opensearch-node2 | |
- bootstrap.memory_lock=true | |
- "OPENSEARCH_JAVA_OPTS=-Xms3078m -Xmx3078m" | |
- OPENSEARCH_INITIAL_ADMIN_PASSWORD=A3s0p3nS3cUr1tY | |
volumes: | |
- opensearch-data2:/usr/share/opensearch/data | |
ports: | |
- 9201:9200 | |
- 9601:9600 # required for Performance Analyzer | |
networks: | |
- opensearch-net | |
volumes: | |
opensearch-data1: | |
opensearch-data2: | |
networks: | |
opensearch-net: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment