ES memory settings

This commit is contained in:
Oleg Lavrovsky 2019-09-09 21:05:41 +02:00
parent f067fdfe54
commit f9e06db12a
3 changed files with 5 additions and 3 deletions

View file

@ -42,7 +42,7 @@ setup:
release:
docker-compose pull
sudo docker-compose build web --verbose
sudo docker-compose build web
docker-compose stop web
docker-compose kill web
docker-compose up -d web

View file

@ -35,6 +35,8 @@ postgres:
ports:
- "5432:5432"
elasticsearch:
image: elasticsearch:2
image: elasticsearch:5
ports:
- "9200:9200"
environment:
- ES_JAVA_OPTS="-Xms512m -Xmx512m"

View file

@ -131,7 +131,7 @@ if REDIS_LOCATION is not None:
if 'ELASTICSEARCH_URL' in env:
WAGTAILSEARCH_BACKENDS = {
'default': {
'BACKEND': 'wagtail.search.backends.elasticsearch2',
'BACKEND': 'wagtail.search.backends.elasticsearch5',
'URLS': [env['ELASTICSEARCH_URL']],
'INDEX': APP_NAME,
'ATOMIC_REBUILD': True,