|
| 1 | +version: '2.1' |
| 2 | + |
| 3 | +x-logging: &default-logging |
| 4 | + driver: 'json-file' |
| 5 | + options: |
| 6 | + max-size: '12m' |
| 7 | + max-file: '5' |
| 8 | + |
| 9 | +volumes: |
| 10 | + elasticsearch1-data: |
| 11 | + elasticsearch2-data: |
| 12 | + elasticsearch3-data: |
| 13 | + elasticsearch4-data: |
| 14 | + kibana-data: |
| 15 | + |
| 16 | +services: |
| 17 | + elasticsearch1: |
| 18 | + image: 'elasticsearch:7.17.9' |
| 19 | + mem_limit: '1024m' |
| 20 | + mem_reservation: '512m' |
| 21 | + ulimits: |
| 22 | + memlock: |
| 23 | + soft: -1 |
| 24 | + hard: -1 |
| 25 | + environment: |
| 26 | + node.name: 'elasticsearch1' |
| 27 | + cluster.name: 'elasticsearch' |
| 28 | + discovery.seed_hosts: 'elasticsearch1,elasticsearch2,elasticsearch3' |
| 29 | + cluster.initial_master_nodes: 'elasticsearch1,elasticsearch2,elasticsearch3' |
| 30 | + node.master: 'true' |
| 31 | + node.data: 'true' |
| 32 | + node.attr.data: 'hot' |
| 33 | + node.ingest: 'true' |
| 34 | + node.ml: 'false' |
| 35 | + node.transform: 'false' |
| 36 | + node.remote_cluster_client: 'false' |
| 37 | + xpack.ml.enabled: 'false' |
| 38 | + xpack.transform.enabled: 'false' |
| 39 | + xpack.security.enabled: 'true' |
| 40 | + ELASTIC_PASSWORD: 'elastic' |
| 41 | + ports: |
| 42 | + - '9201:9200' |
| 43 | + volumes: |
| 44 | + - 'elasticsearch1-data:/usr/share/elasticsearch/data' |
| 45 | + logging: *default-logging |
| 46 | + |
| 47 | + elasticsearch2: |
| 48 | + image: 'elasticsearch:7.17.9' |
| 49 | + mem_limit: '1024m' |
| 50 | + mem_reservation: '512m' |
| 51 | + ulimits: |
| 52 | + memlock: |
| 53 | + soft: -1 |
| 54 | + hard: -1 |
| 55 | + environment: |
| 56 | + node.name: 'elasticsearch2' |
| 57 | + cluster.name: 'elasticsearch' |
| 58 | + discovery.seed_hosts: 'elasticsearch1,elasticsearch2,elasticsearch3' |
| 59 | + cluster.initial_master_nodes: 'elasticsearch1,elasticsearch2,elasticsearch3' |
| 60 | + bootstrap.memory_lock: 'true' |
| 61 | + node.master: 'true' |
| 62 | + node.data: 'true' |
| 63 | + node.attr.data: 'hot' |
| 64 | + node.ingest: 'true' |
| 65 | + node.ml: 'false' |
| 66 | + node.transform: 'false' |
| 67 | + node.remote_cluster_client: 'false' |
| 68 | + xpack.ml.enabled: 'false' |
| 69 | + xpack.transform.enabled: 'false' |
| 70 | + xpack.security.enabled: 'true' |
| 71 | + ELASTIC_PASSWORD: 'elastic' |
| 72 | + ports: |
| 73 | + - '9202:9200' |
| 74 | + volumes: |
| 75 | + - 'elasticsearch2-data:/usr/share/elasticsearch/data' |
| 76 | + logging: *default-logging |
| 77 | + |
| 78 | + elasticsearch3: |
| 79 | + image: 'elasticsearch:7.17.9' |
| 80 | + mem_limit: '1024m' |
| 81 | + mem_reservation: '512m' |
| 82 | + ulimits: |
| 83 | + memlock: |
| 84 | + soft: -1 |
| 85 | + hard: -1 |
| 86 | + environment: |
| 87 | + node.name: 'elasticsearch3' |
| 88 | + cluster.name: 'elasticsearch' |
| 89 | + discovery.seed_hosts: 'elasticsearch1,elasticsearch2,elasticsearch3' |
| 90 | + cluster.initial_master_nodes: 'elasticsearch1,elasticsearch2,elasticsearch3' |
| 91 | + bootstrap.memory_lock: 'true' |
| 92 | + node.master: 'true' |
| 93 | + node.data: 'true' |
| 94 | + node.attr.data: 'hot' |
| 95 | + node.ingest: 'true' |
| 96 | + node.ml: 'false' |
| 97 | + node.transform: 'false' |
| 98 | + node.remote_cluster_client: 'false' |
| 99 | + xpack.ml.enabled: 'false' |
| 100 | + xpack.transform.enabled: 'false' |
| 101 | + xpack.security.enabled: 'true' |
| 102 | + ELASTIC_PASSWORD: 'elastic' |
| 103 | + ports: |
| 104 | + - '9203:9200' |
| 105 | + volumes: |
| 106 | + - 'elasticsearch3-data:/usr/share/elasticsearch/data' |
| 107 | + logging: *default-logging |
| 108 | + |
| 109 | + elasticsearch4: |
| 110 | + image: 'elasticsearch:7.17.9' |
| 111 | + mem_limit: '1024m' |
| 112 | + mem_reservation: '512m' |
| 113 | + ulimits: |
| 114 | + memlock: |
| 115 | + soft: -1 |
| 116 | + hard: -1 |
| 117 | + environment: |
| 118 | + node.name: 'elasticsearch4' |
| 119 | + cluster.name: 'elasticsearch' |
| 120 | + discovery.seed_hosts: 'elasticsearch1,elasticsearch2,elasticsearch3' |
| 121 | + cluster.initial_master_nodes: 'elasticsearch1,elasticsearch2,elasticsearch3' |
| 122 | + bootstrap.memory_lock: 'true' |
| 123 | + node.master: 'false' |
| 124 | + node.voting_only: 'false' |
| 125 | + node.data: 'false' |
| 126 | + node.ingest: 'false' |
| 127 | + node.ml: 'false' |
| 128 | + node.transform: 'false' |
| 129 | + node.remote_cluster_client: 'false' |
| 130 | + xpack.ml.enabled: 'false' |
| 131 | + xpack.transform.enabled: 'false' |
| 132 | + xpack.security.enabled: 'true' |
| 133 | + ELASTIC_PASSWORD: 'elastic' |
| 134 | + volumes: |
| 135 | + - 'elasticsearch4-data:/usr/share/elasticsearch/data' |
| 136 | + logging: *default-logging |
| 137 | + |
| 138 | + kibana: |
| 139 | + image: 'kibana:7.17.9' |
| 140 | + mem_limit: '1024m' |
| 141 | + mem_reservation: '512m' |
| 142 | + ulimits: |
| 143 | + memlock: |
| 144 | + soft: -1 |
| 145 | + hard: -1 |
| 146 | + environment: |
| 147 | + SERVER_PUBLICBASEURL: 'http://localhost:5601' |
| 148 | + ELASTICSEARCH_HOSTS: 'http://elasticsearch4:9200' |
| 149 | + xpack.security.enabled: 'true' |
| 150 | + ELASTICSEARCH_USERNAME: 'elastic' |
| 151 | + ELASTICSEARCH_PASSWORD: 'elastic' |
| 152 | + TELEMETRY_ENABLED: 'false' |
| 153 | + NEWSFEED_ENABLED: 'false' |
| 154 | + ports: |
| 155 | + - '5601:5601' |
| 156 | + volumes: |
| 157 | + - 'kibana-data:/usr/share/kibana/data' |
| 158 | + logging: *default-logging |
0 commit comments