ES memory settings
This commit is contained in:
parent
f067fdfe54
commit
f9e06db12a
3 changed files with 5 additions and 3 deletions
2
Makefile
2
Makefile
|
@ -42,7 +42,7 @@ setup:
|
||||||
|
|
||||||
release:
|
release:
|
||||||
docker-compose pull
|
docker-compose pull
|
||||||
sudo docker-compose build web --verbose
|
sudo docker-compose build web
|
||||||
docker-compose stop web
|
docker-compose stop web
|
||||||
docker-compose kill web
|
docker-compose kill web
|
||||||
docker-compose up -d web
|
docker-compose up -d web
|
||||||
|
|
|
@ -35,6 +35,8 @@ postgres:
|
||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
elasticsearch:
|
elasticsearch:
|
||||||
image: elasticsearch:2
|
image: elasticsearch:5
|
||||||
ports:
|
ports:
|
||||||
- "9200:9200"
|
- "9200:9200"
|
||||||
|
environment:
|
||||||
|
- ES_JAVA_OPTS="-Xms512m -Xmx512m"
|
||||||
|
|
|
@ -131,7 +131,7 @@ if REDIS_LOCATION is not None:
|
||||||
if 'ELASTICSEARCH_URL' in env:
|
if 'ELASTICSEARCH_URL' in env:
|
||||||
WAGTAILSEARCH_BACKENDS = {
|
WAGTAILSEARCH_BACKENDS = {
|
||||||
'default': {
|
'default': {
|
||||||
'BACKEND': 'wagtail.search.backends.elasticsearch2',
|
'BACKEND': 'wagtail.search.backends.elasticsearch5',
|
||||||
'URLS': [env['ELASTICSEARCH_URL']],
|
'URLS': [env['ELASTICSEARCH_URL']],
|
||||||
'INDEX': APP_NAME,
|
'INDEX': APP_NAME,
|
||||||
'ATOMIC_REBUILD': True,
|
'ATOMIC_REBUILD': True,
|
||||||
|
|
Loading…
Reference in a new issue