Advertisement
Guest User

server compose

a guest
Apr 20th, 2020
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. version: '3'
  2. services:
  3. nyx-node1:
  4. image: amazon/opendistro-for-elasticsearch:1.6.0
  5. container_name: nyx-node1
  6. environment:
  7. - cluster.name=nyx-cluster
  8. - node.name=nyx-node1
  9. - discovery.seed_hosts=192.168.1.32
  10. - cluster.initial_master_nodes=nyx-node1
  11. - bootstrap.memory_lock=true # along with the memlock settings below, disables swapping
  12. - "ES_JAVA_OPTS=-Xms4096m -Xmx4096m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM
  13. - network.host=0.0.0.0
  14. ulimits:
  15. memlock:
  16. soft: -1
  17. hard: -1
  18. nofile:
  19. soft: 65536 # maximum number of open files for the Elasticsearch user, set to at least 65536 on modern systems
  20. hard: 65536
  21. volumes:
  22. - nyx-data1:/usr/share/elasticsearch/data
  23. ports:
  24. - 9200:9200
  25. - 9600:9600 # required for Performance Analyzer
  26. - 0.0.0.0:9300:9300
  27. nyx-node2:
  28. image: amazon/opendistro-for-elasticsearch:1.6.0
  29. container_name: nyx-node2
  30. environment:
  31. - cluster.name=nyx-cluster
  32. - node.name=nyx-node2
  33. - discovery.seed_hosts=192.168.1.32
  34. - cluster.initial_master_nodes=nyx-node1
  35. - bootstrap.memory_lock=true
  36. - "ES_JAVA_OPTS=-Xms4096m -Xmx4096m"
  37. ulimits:
  38. memlock:
  39. soft: -1
  40. hard: -1
  41. nofile:
  42. soft: 65536
  43. hard: 65536
  44. volumes:
  45. - nyx-data2:/usr/share/elasticsearch/data
  46. kibana:
  47. image: amazon/opendistro-for-elasticsearch-kibana:1.6.0
  48. container_name: nyx-kibana
  49. ports:
  50. - 5601:5601
  51. expose:
  52. - "5601"
  53. environment:
  54. ELASTICSEARCH_URL: https://192.168.1.32:9200
  55. ELASTICSEARCH_HOSTS: https://192.168.1.32:9200
  56.  
  57.  
  58. volumes:
  59. nyx-data1:
  60. nyx-data2:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement