代码拉取完成,页面将自动刷新
# 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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。