Guest User

Untitled

a guest
Jan 18th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.78 KB | None | 0 0
  1. version: '2.2'
  2. services:
  3. elasticsearch1:
  4. build: elastic-img
  5. container_name: elasticsearch1
  6. environment:
  7. - cluster.name=docker-cluster-for-fess
  8. - node.name=node1
  9. - bootstrap.memory_lock=true
  10. - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
  11. - discovery.zen.ping.unicast.hosts=fess
  12. - discovery.zen.minimum_master_nodes=1
  13. - cluster.routing.allocation.disk.threshold_enabled=true
  14. - cluster.routing.allocation.disk.watermark.low=2gb
  15. - cluster.routing.allocation.disk.watermark.high=1gb
  16. - cluster.routing.allocation.disk.watermark.flood_stage=512mb
  17. - configsync.config_path=/var/lib/elasticsearch/config/
  18. - node.master=false
  19. - node.ml=false
  20. - xpack.ml.enabled=true
  21. ulimits:
  22. memlock:
  23. soft: -1
  24. hard: -1
  25. volumes:
  26. - /usr/share/elasticsearch/data
  27. - /var/lib/elasticsearch/config
  28. networks:
  29. - esnet
  30. elasticsearch2:
  31. build: elastic-img
  32. container_name: elasticsearch2
  33. environment:
  34. - node.name=node2
  35. - cluster.name=docker-cluster-for-fess
  36. - bootstrap.memory_lock=true
  37. - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
  38. - discovery.zen.ping.unicast.hosts=fess
  39. - discovery.zen.minimum_master_nodes=1
  40. - cluster.routing.allocation.disk.threshold_enabled=true
  41. - cluster.routing.allocation.disk.watermark.low=2gb
  42. - cluster.routing.allocation.disk.watermark.high=1gb
  43. - cluster.routing.allocation.disk.watermark.flood_stage=512mb
  44. - configsync.config_path=/var/lib/elasticsearch/config/
  45. - node.master=false
  46. - node.ml=false
  47. - xpack.ml.enabled=true
  48. ulimits:
  49. memlock:
  50. soft: -1
  51. hard: -1
  52. volumes:
  53. - /usr/share/elasticsearch/data
  54. - /var/lib/elasticsearch/config
  55. networks:
  56. - esnet
  57. elasticsearch3:
  58. build: elastic-img
  59. container_name: elasticsearch3
  60. environment:
  61. - node.name=node3
  62. - discovery.zen.ping.unicast.hosts=fess
  63. - discovery.zen.minimum_master_nodes=1
  64. - cluster.name=docker-cluster-for-fess
  65. - bootstrap.memory_lock=true
  66. - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
  67. - cluster.routing.allocation.disk.threshold_enabled=true
  68. - cluster.routing.allocation.disk.watermark.low=2gb
  69. - cluster.routing.allocation.disk.watermark.high=1gb
  70. - cluster.routing.allocation.disk.watermark.flood_stage=512mb
  71. - configsync.config_path=/var/lib/elasticsearch/config/
  72. - node.master=false
  73. - node.ml=false
  74. - xpack.ml.enabled=true
  75. ulimits:
  76. memlock:
  77. soft: -1
  78. hard: -1
  79. volumes:
  80. - /usr/share/elasticsearch/data
  81. - /var/lib/elasticsearch/config
  82. networks:
  83. - esnet
  84. fess:
  85. build: fess-img
  86. container_name: fess
  87. ports:
  88. - 8080:8080
  89. networks:
  90. - esnet
  91.  
  92. networks:
  93. esnet:
Add Comment
Please, Sign In to add comment