代码拉取完成,页面将自动刷新
version: '2.4'
networks:
elastic3:
services:
es1:
# with full plugins: 7.17.9> 7.17.7
# image: elasticsearch:${ES_VER:-7.17.7} #kkn 7.x's newest
image: registry.cn-shenzhen.aliyuncs.com/infrastlabs/elasticsearch:${ES_VER:-7.17.7}
container_name: es1
restart: unless-stopped
environment:
- ES_JAVA_OPTS=-Xms256M -Xmx256M
- ELASTIC_PASSWORD=elastic1234
- node.name=es1
- cluster.initial_master_nodes=es1
ulimits:
nproc: 65535
memlock:
soft: -1
hard: -1
cap_add:
- ALL
volumes:
- ./conf/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- ./plugins:/usr/share/elasticsearch/plugins
- ./logs/xpack1:/var/log
- ./data/xpack1:/usr/share/elasticsearch/data
networks:
- elastic3
ports:
- 9200:9200
- 9300:9300
# cpuset: 0,1
# mem_limit: 1024m
# mem_reservation: 1g
# memswap_limit: 0m
# es2:
# # image: blacktop/elasticsearch:x-pack-7.10.2
# image: registry.cn-shenzhen.aliyuncs.com/infrastlabs/elasticsearch:${ES_VER:-7.17.7}
# container_name: es2
# restart: unless-stopped
# environment:
# - ES_JAVA_OPTS=-Xms256M -Xmx256M
# - node.name=es2
# - discovery.seed_hosts=es1
# - cluster.initial_master_nodes=es1
# # - discovery.zen.ping.unicast.hosts=es1
# ulimits:
# nproc: 65535
# memlock:
# soft: -1
# hard: -1
# cap_add:
# - ALL
# volumes:
# - ./conf/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
# - ./plugins:/usr/share/elasticsearch/plugins
# - ./logs/xpack2:/var/log
# - ./data/xpack2:/usr/share/elasticsearch/data
# networks:
# - elastic3
# ports:
# - 19201:9200
# es3:
# # image: blacktop/elasticsearch:x-pack-7.10.2
# image: registry.cn-shenzhen.aliyuncs.com/infrastlabs/elasticsearch:${ES_VER:-7.17.7}
# container_name: es3
# restart: unless-stopped
# environment:
# - ES_JAVA_OPTS=-Xms256M -Xmx256M
# - node.name=elasticsearch3
# - discovery.seed_hosts=es1
# - cluster.initial_master_nodes=es1
# # - discovery.zen.ping.unicast.hosts=es1
# ulimits:
# nproc: 65535
# memlock:
# soft: -1
# hard: -1
# cap_add:
# - ALL
# volumes:
# - ./conf/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
# - ./plugins:/usr/share/elasticsearch/plugins
# - ./logs/xpack3:/var/log
# - ./data/xpack3:/usr/share/elasticsearch/data
# networks:
# - elastic3
# ports:
# - 19202:9200
kibana:
# image: kibana:${ES_VER:-7.17.7}
image: registry.cn-shenzhen.aliyuncs.com/infrastlabs/kibana:${ES_VER:-7.17.7}
restart: unless-stopped
network_mode: host
# environment:
# - ELASTIC_PASSWORD=elastic1234
volumes:
- ./conf/kibana.yml:/usr/share/kibana/config/kibana.yml
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。