加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docker-compose-oss-alpine.yml 3.40 KB
一键复制 编辑 原始数据 按行查看 历史
sam#gemmi-win10 提交于 2023-05-30 00:16 . sq: up dcp
version: '2.4'
networks:
elastic3:
services:
elasticsearch1:
image: registry.cn-shenzhen.aliyuncs.com/infrastlabs/blacktop-elasticsearch:${ES_VER:-7.10.2}
container_name: elasticsearch1-lite
restart: unless-stopped
environment:
# 256M> 800M
- ES_JAVA_OPTS=-Xms800M -Xmx800M
- ELASTIC_PASSWORD=elastic1234
- node.name=elasticsearch1
- cluster.initial_master_nodes=elasticsearch1
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/oss1:/var/log
- ./data/oss1:/usr/share/elasticsearch/data
networks:
- elastic3
ports:
- 9200:9200
- 9300:9300
# cpuset: 0,1
# mem_limit: 1024m
# mem_reservation: 1g
# memswap_limit: 0m
elasticsearch2:
image: registry.cn-shenzhen.aliyuncs.com/infrastlabs/blacktop-elasticsearch:${ES_VER:-7.10.2}
container_name: elasticsearch2-lite
restart: unless-stopped
environment:
- ES_JAVA_OPTS=-Xms800M -Xmx800M
- node.name=elasticsearch2
- cluster.initial_master_nodes=elasticsearch1
- discovery.zen.ping.unicast.hosts=elasticsearch1
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/oss2:/var/log
- ./data/oss2:/usr/share/elasticsearch/data
networks:
- elastic3
ports:
- 19201:9200
elasticsearch3:
image: registry.cn-shenzhen.aliyuncs.com/infrastlabs/blacktop-elasticsearch:${ES_VER:-7.10.2}
container_name: elasticsearch3-lite
restart: unless-stopped
environment:
- ES_JAVA_OPTS=-Xms800M -Xmx800M
- node.name=elasticsearch3
- cluster.initial_master_nodes=elasticsearch1
- discovery.zen.ping.unicast.hosts=elasticsearch1
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/oss3:/var/log
- ./data/oss3:/usr/share/elasticsearch/data
networks:
- elastic3
ports:
- 19202:9200
# kibana: #oss版
# image: blacktop/kibana:7.10.2
# image: registry.cn-shenzhen.aliyuncs.com/infrastlabs/blacktop-kibana:${ES_VER:-7.10.2}
# restart: unless-stopped
# network_mode: host
# # environment:
# # - ELASTIC_PASSWORD=elastic1234
# volumes:
# - ./conf/kibana.yml:/usr/share/kibana/config/kibana.yml
es-vue:
image: registry.cn-shenzhen.aliyuncs.com/infrastlabs/cars10-elasticvue:0.42.1
restart: unless-stopped
ports:
- 18081:8080
es-admin:
image: registry.cn-shenzhen.aliyuncs.com/infrastlabs/stephanediondev-elasticsearch-admin:latest
command:
# - /bin/sh /es-admin-cmd.
- /bin/sh
- -c
- sh /es-admin-cmd.sh
restart: unless-stopped
ports:
- 18082:8080
environment:
- ELASTICSEARCH_URL=http://172.25.23.195:9200
- ELASTICSEARCH_USERNAME=elastic
- ELASTICSEARCH_PASSWORD=elastic1234
- SECRET_REGISTER=123
volumes:
- ./bin/es-admin-cmd.sh:/es-admin-cmd.sh
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化