use another ES server
This commit is contained in:
parent
9212f85ee5
commit
89191fcf35
13
docker-compose.elasticsearch.yml
Normal file
13
docker-compose.elasticsearch.yml
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
version: '3.5'
|
||||||
|
services:
|
||||||
|
elasticsearch:
|
||||||
|
image: elasticsearch:7.3.1
|
||||||
|
volumes:
|
||||||
|
- gm-esdata:/usr/share/elasticsearch/data
|
||||||
|
hostname: elasticsearch
|
||||||
|
network_mode: 'host'
|
||||||
|
environment:
|
||||||
|
- "ES_JAVA_OPTS=-Xms4g -Xmx4g"
|
||||||
|
- discovery.type=single-node
|
||||||
|
- xpack.security.enabled=false
|
||||||
|
restart: always
|
||||||
|
|
@ -21,7 +21,7 @@ DOMAIN_URI = 'gm.id-east.ru'
|
||||||
# ELASTICSEARCH SETTINGS
|
# ELASTICSEARCH SETTINGS
|
||||||
ELASTICSEARCH_DSL = {
|
ELASTICSEARCH_DSL = {
|
||||||
'default': {
|
'default': {
|
||||||
'hosts': 'localhost:9200'
|
'hosts': '188.68.209.124:9200'
|
||||||
# 'hosts': 'elasticsearch:9200'
|
# 'hosts': 'elasticsearch:9200'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user