1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113
| version: '2.2' services: node-0: image: ${PRIVATE_REPO}/joylau/es-doc:${ES_VERSION} container_name: node-0 ports: - 9200:9200 - 9300:9300 restart: always volumes: - ${ELASTICSEARCH_CLUSTER_DIR}/data/node-0:/usr/share/elasticsearch/data - ${ELASTICSEARCH_CLUSTER_DIR}/logs/node-0:/usr/share/elasticsearch/logs environment: - bootstrap.memory_lock=true - cluster.name=es-doc-office - node.name=node-0 - "ES_JAVA_OPTS=-Xms2g -Xmx2g" ulimits: memlock: soft: -1 hard: -1 networks: - esnet node-1: image: ${PRIVATE_REPO}/joylau/es-doc:${ES_VERSION} container_name: node-1 restart: always ports: - 9201:9200 - 9301:9300 volumes: - ${ELASTICSEARCH_CLUSTER_DIR}/data/node-1:/usr/share/elasticsearch/data - ${ELASTICSEARCH_CLUSTER_DIR}/logs/node-1:/usr/share/elasticsearch/logs environment: - bootstrap.memory_lock=true - cluster.name=es-doc-office - node.name=node-1 - "ES_JAVA_OPTS=-Xms2g -Xmx2g" - "discovery.zen.ping.unicast.hosts=node-0" ulimits: memlock: soft: -1 hard: -1 networks: - esnet node-2: image: ${PRIVATE_REPO}/joylau/es-doc:${ES_VERSION} container_name: node-2 ports: - 9202:9200 - 9302:9300 restart: always volumes: - ${ELASTICSEARCH_CLUSTER_DIR}/data/node-2:/usr/share/elasticsearch/data - ${ELASTICSEARCH_CLUSTER_DIR}/logs/node-2:/usr/share/elasticsearch/logs environment: - bootstrap.memory_lock=true - cluster.name=es-doc-office - node.name=node-2 - "ES_JAVA_OPTS=-Xms2g -Xmx2g" - "discovery.zen.ping.unicast.hosts=master,node-1" ulimits: memlock: soft: -1 hard: -1 networks: - esnet node-3: image: ${PRIVATE_REPO}/joylau/es-doc:${ES_VERSION} container_name: node-3 ports: - 9203:9200 - 9303:9300 restart: always volumes: - ${ELASTICSEARCH_CLUSTER_DIR}/data/node-3:/usr/share/elasticsearch/data - ${ELASTICSEARCH_CLUSTER_DIR}/logs/node-3:/usr/share/elasticsearch/logs environment: - bootstrap.memory_lock=true - cluster.name=es-doc-office - node.name=node-3 - "ES_JAVA_OPTS=-Xms2g -Xmx2g" - "discovery.zen.ping.unicast.hosts=master,node-1,node-2" ulimits: memlock: soft: -1 hard: -1 networks: - esnet node-4: image: ${PRIVATE_REPO}/joylau/es-doc:${ES_VERSION} container_name: node-4 ports: - 9204:9200 - 9304:9300 restart: always volumes: - ${ELASTICSEARCH_CLUSTER_DIR}/data/node-4:/usr/share/elasticsearch/data - ${ELASTICSEARCH_CLUSTER_DIR}/logs/node-4:/usr/share/elasticsearch/logs environment: - bootstrap.memory_lock=true - cluster.name=es-doc-office - node.name=node-4 - "ES_JAVA_OPTS=-Xms2g -Xmx2g" - "discovery.zen.ping.unicast.hosts=master,node-1,node-3" ulimits: memlock: soft: -1 hard: -1 networks: - esnet networks: esnet:
|