加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docker-compose-xpack-kkn.yml 3.02 KB
一键复制 编辑 原始数据 按行查看 历史
sa 提交于 2023-05-30 11:58 . kkn > single: notes 2,3
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化