加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docker-compose-single.yml 3.01 KB
一键复制 编辑 原始数据 按行查看 历史
sam#gemmi-win10 提交于 2023-05-30 00:16 . sq: up dcp
# orgRef: https://www.elastic.co/guide/en/elasticsearch/reference/7.5/docker.html
version: '2.4'
networks:
elastic3:
services:
es-single:
# image: elasticsearch:7.8.0
# image: secureimages/elasticsearch-oss:7.5.2-alpine-3.11.3
# image: blacktop/elasticsearch:7.10.2 #OpenJDK 64-Bit Server VM (build 11.0.9+11-alpine-r1, mixed mode)
image: registry.cn-shenzhen.aliyuncs.com/infrastlabs/elasticsearch:${ES_VER:-7.17.7}
# entrypoint: "/conf/entry.sh"
# command: "elasticsearch" #ref the images's conf; test with /elastic-entrypoint.sh>> echo $@;
container_name: es-single
restart: unless-stopped
environment:
- ES_JAVA_OPTS=-Xms256M -Xmx256M
- 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-single.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- ./plugins:/usr/share/elasticsearch/plugins
- ./logs/single:/var/log
- ./data/single:/usr/share/elasticsearch/data
networks:
- elastic3
ports:
- 9200:9200
- 9300:9300
# https://docs.docker.com/compose/compose-file/compose-file-v2/#cpu-and-other-resources
# cpus, cpu_count, cpu_percent options were added in version 2.2.
# cpus: 0.5 #--cpus="8"为可以最多使用8个100%的CPU core,不过实际上系统会将这8个100%(即800%)按总core数进行均分
# cpu_count: 2
# cpu_percent: 50 #(Windows only)
# cpu_shares: 73 #只有一个容器时--cpu-shares选项无意义
# cpu-period和cpu-quota的单位为微秒(μs)
# cpu_period: 20ms
# cpu_quota: 50000
# cpuset: 0,1
# mem_limit: 1024m
# mem_reservation: 1g
# memswap_limit: 0m
kibana: #oss版
# image: blacktop/kibana:7.10.2
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
# es-vue:
# # image: cars10/elasticvue:0.42.1
# image: registry.cn-shenzhen.aliyuncs.com/infrastlabs/cars10-elasticvue:0.42.1
# restart: unless-stopped
# ports:
# - 18081:8080
# es-admin:
# # image: stephanediondev/elasticsearch-admin:latest
# image: registry.cn-shenzhen.aliyuncs.com/infrastlabs/stephanediondev-elasticsearch-admin:latest
# command:
# # - /usr/bin/supervisord -c "/etc/supervisor/conf.d/supervisord.conf"
# - /bin/sh /es-admin-cmd.sh
# restart: unless-stopped
# ports:
# - 18082:8080
# environment:
# - ELASTICSEARCH_URL=http://172.17.0.208:9200
# - ELASTICSEARCH_USERNAME=elastic
# - ELASTICSEARCH_PASSWORD=elastic1234
# - SECRET_REGISTER=123
# volumes:
# - ./bin/es-admin-cmd.sh:/es-admin-cmd.sh
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化