this is a es image, version 7.6.2,with ik plugin
160
├── conf
│ └── elasticsearch.yml
├── data
├── plugins
└── start
├── docker-compose-cluster.yaml
├── docker-compose-single.yaml
├── start.sh
└── stop.sh
cluster.name: "es01" #设置集群名称
network.host: 0.0.0.0
discovery.type: single-node #以单一节点模式启动
# 是否支持跨域
http.cors.enabled: true
# 表示支持所有域名
http.cors.allow-origin: "*"
# 内存交换的选项,官网建议为true
bootstrap.memory_lock: true
# resetful端口
http.port: 9200
# xpack安全
xpack.security.enabled: false
ingest.geoip.downloader.enabled: false
version: '2.2'
services:
es01:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.6
container_name: es01
ulimits:
memlock:
soft: -1
hard: -1
environment:
- "ES_JAVA_OPTS=-Xms1512m -Xmx1512m"
volumes:
- ./../conf/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- ./../data:/usr/share/elasticsearch/data
- ./../plugins:/usr/share/elasticsearch/plugins
- /etc/localtime:/etc/localtime:ro
ports:
- 9200:9200
- 9300:9300
networks:
- elastic
kibana:
image: docker.elastic.co/kibana/kibana:7.17.6
container_name: kibana
volumes:
- ./../../kibana/conf/kibana.yml:/usr/share/kibana/config/kibana.yml
- /etc/localtime:/etc/localtime:ro
ports:
- 5601:5601
depends_on:
# kibana在elasticsearch启动之后再启动
- es01
networks:
- elastic
cerebro:
image: lmenezes/cerebro:0.9.4
container_name: cerebro
ports:
- 19000:9000
command:
- -Dhosts.0.host=http://es01:9200
depends_on:
- es01
networks:
- elastic
networks:
elastic:
driver: bridge
#!bin/bash
# 单机
docker-compose -f docker-compose-single.yaml up -d
# 集群
# docker-compose -f docker-compose-cluster.yaml up -d
Content type
Image
Digest
sha256:618fdaffb…
Size
328.1 MB
Last updated
about 4 years ago
docker pull qydockerhub/es:7.17.6