Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3'
- services:
- nyx-node1:
- image: amazon/opendistro-for-elasticsearch:1.6.0
- container_name: nyx-node3-data
- environment:
- - cluster.name=nyx-cluster
- - node.name=nyx-node3-data
- - discovery.seed_hosts=192.168.1.32
- - bootstrap.memory_lock=true # along with the memlock settings below, disables swapping
- - "ES_JAVA_OPTS=-Xms4096m -Xmx4096m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM
- - network.host=0.0.0.0
- ulimits:
- memlock:
- soft: -1
- hard: -1
- nofile:
- soft: 65536 # maximum number of open files for the Elasticsearch user, set to at least 65536 on modern systems
- hard: 65536
- volumes:
- - nyx-data3:/usr/share/elasticsearch/data
- ports:
- - 9200:9200
- - 9300:9300
- network_mode: "host"
- nyx-node4-data:
- image: amazon/opendistro-for-elasticsearch:1.6.0
- container_name: nyx-node4-data
- environment:
- - cluster.name=nyx-cluster
- - node.name=nyx-node4-data
- - discovery.seed_hosts=192.168.1.32
- - bootstrap.memory_lock=true
- - "ES_JAVA_OPTS=-Xms4096m -Xmx4096m"
- ulimits:
- memlock:
- soft: -1
- hard: -1
- nofile:
- soft: 65536
- hard: 65536
- volumes:
- - nyx-data4:/usr/share/elasticsearch/data
- nyx-node5-data:
- image: amazon/opendistro-for-elasticsearch:1.6.0
- container_name: nyx-node5-data
- environment:
- - cluster.name=nyx-cluster
- - node.name=nyx-node5-data
- - discovery.seed_hosts=192.168.1.32
- - bootstrap.memory_lock=true
- - "ES_JAVA_OPTS=-Xms4096m -Xmx4096m"
- ulimits:
- memlock:
- soft: -1
- hard: -1
- nofile:
- soft: 65536
- hard: 65536
- volumes:
- - nyx-data5:/usr/share/elasticsearch/data
- volumes:
- nyx-data3:
- nyx-data4:
- nyx-data5:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement