From c7033d4b103c0c3f530998d889a179a7348edfef Mon Sep 17 00:00:00 2001 From: Kuroshini Date: Mon, 18 Nov 2019 18:09:19 +0300 Subject: [PATCH] Revert "Revert "ES as separate server"" This reverts commit f81e879 --- docker-compose.elasticsearch.yml | 21 +++++++++++++++++++++ project/settings/development.py | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 docker-compose.elasticsearch.yml diff --git a/docker-compose.elasticsearch.yml b/docker-compose.elasticsearch.yml new file mode 100644 index 00000000..3b412ab1 --- /dev/null +++ b/docker-compose.elasticsearch.yml @@ -0,0 +1,21 @@ +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 + ulimits: + memlock: + soft: -1 + hard: -1 + nofile: + soft: 65536 + hard: 65536 + mem_limit: 4g \ No newline at end of file diff --git a/project/settings/development.py b/project/settings/development.py index 3bc258a1..669bc485 100644 --- a/project/settings/development.py +++ b/project/settings/development.py @@ -21,7 +21,7 @@ DOMAIN_URI = 'gm.id-east.ru' # ELASTICSEARCH SETTINGS ELASTICSEARCH_DSL = { 'default': { - 'hosts': 'localhost:9200' + 'hosts': '188.68.209.124:9200' # 'hosts': 'elasticsearch:9200' } }