1
0
mirror of https://github.com/chatopera/cosin.git synced 2025-08-01 16:38:02 +08:00

Update elasticsearch from 2.4.6 to 6.8.7

This commit is contained in:
dengchao@xgtl 2020-04-22 16:07:09 +08:00
parent 56857dea42
commit a35777c844
2 changed files with 12 additions and 15 deletions

View File

@ -71,16 +71,11 @@ spring.freemarker.settings.number_format=0.###
spring.data.jpa.repositories.enabled=true
spring.data.redis.repositories.enabled=false
# Elasticsearch
spring.elasticsearch.rest.uris=http://localhost:9200
spring.data.elasticsearch.repositories.enabled=true
# suppress inspection "SpringBootApplicationProperties"
spring.data.elasticsearch.properties.path.data=../data
# suppress inspection "SpringBootApplicationProperties"
spring.data.elasticsearch.cluster-name=elasticsearch
# suppress inspection "SpringBootApplicationProperties"
spring.data.elasticsearch.cluster-nodes=127.0.0.1:9300
# suppress inspection "SpringBootApplicationProperties"
spring.data.elasticsearch.local=false
spring.data.elasticsearch.repositories.enabled=true
# suppress inspection "SpringBootApplicationProperties"
spring.data.elasticsearch.properties.index.max_result_window=100000
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource

View File

@ -98,12 +98,14 @@ services:
- "${REDIS_PORT:-8041}:6379"
elasticsearch:
image: elasticsearch:2.4.6
restart: always
volumes:
- ./database/elasticsearch/data:/usr/share/elasticsearch/data
- ./database/elasticsearch/config:/usr/share/elasticsearch/config
- ./database/elasticsearch/plugins:/usr/share/elasticsearch/plugins
# checkout spring data elasticsearch's document to known which version of es should be used.
# https://docs.spring.io/spring-data/elasticsearch/docs/3.2.6.RELEASE/reference/html/#preface.versions
image: elasticsearch:6.8.7
ports:
- "${ES_PORT1:-8039}:9200"
- "${ES_PORT2:-8040}:9300"
- 9200:9200
- 9300:9300
environment:
# override default cluster.name
- cluster.name=elasticsearch
# disable bootstrap check for development environment
- discovery.type=single-node