代码拉取完成,页面将自动刷新
version: '3'
services:
es-master:
image: elasticsearch:7.5.0
container_name: es-master
#restart: always
environment:
ES_JAVA_OPTS: "-Xms4096m -Xmx4096m"
#ELASTIC_PASSWORD: changeme
volumes:
- ./es-master/data:/usr/share/elasticsearch/data:rw
- ./es-master/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- ./es-master/logs:/user/share/elasticsearch/logs:rw
privileged: true
networks:
elknet:
ipv4_address: 172.16.10.3
expose:
- "9200"
- "9300"
es-node1:
image: elasticsearch:7.5.0
container_name: es-node1
#restart: always
environment:
ES_JAVA_OPTS: "-Xms4096m -Xmx4096m"
cluster.name: es-cluster
node.name: node1
node.master: 'false'
node.data: 'true'
node.attr.rack: r1
bootstrap.memory_lock: 'true'
http.port: 9200
network.host: 172.16.10.4
transport.tcp.port: 9300
discovery.seed_hosts: es-master,es-node2,es-node3
cluster.initial_master_nodes: es-master
gateway.recover_after_nodes: 3
volumes:
- es-node1:/usr/share/elasticsearch/data
privileged: true
networks:
elknet:
ipv4_address: 172.16.10.4
expose:
- "9200"
- "9300"
es-node2:
image: elasticsearch:7.5.0
container_name: es-node2
#restart: always
environment:
ES_JAVA_OPTS: "-Xms4096m -Xmx4096m"
cluster.name: es-cluster
node.name: node2
node.master: 'false'
node.data: 'true'
node.attr.rack: r1
bootstrap.memory_lock: 'true'
http.port: 9200
network.host: 172.16.10.5
transport.tcp.port: 9300
discovery.seed_hosts: es-master,es-node1,es-node3
cluster.initial_master_nodes: es-master
gateway.recover_after_nodes: 3
volumes:
- es-node2:/usr/share/elasticsearch/data
privileged: true
networks:
elknet:
ipv4_address: 172.16.10.5
expose:
- "9200"
- "9300"
es-node3:
image: elasticsearch:7.5.0
container_name: es-node3
#restart: always
environment:
ES_JAVA_OPTS: "-Xms4096m -Xmx4096m"
cluster.name: es-cluster
node.name: node3
node.master: 'false'
node.data: 'true'
node.attr.rack: r1
bootstrap.memory_lock: 'true'
http.port: 9200
network.host: 172.16.10.6
transport.tcp.port: 9300
discovery.seed_hosts: es-master,es-node1,es-node2
cluster.initial_master_nodes: es-master
gateway.recover_after_nodes: 3
volumes:
- es-node3:/usr/share/elasticsearch/data
privileged: true
networks:
elknet:
ipv4_address: 172.16.10.6
expose:
- "9200"
- "9300"
volumes:
es-node1:
driver: local
es-node2:
driver: local
es-node3:
driver: local
networks:
elknet:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.16.10.0/24
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。