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:
|
||||
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
|
||||
|
|
|
@ -35,6 +35,8 @@ postgres:
|
|||
ports:
|
||||
- "5432:5432"
|
||||
elasticsearch:
|
||||
image: elasticsearch:2
|
||||
image: elasticsearch:5
|
||||
ports:
|
||||
- "9200:9200"
|
||||
environment:
|
||||
- ES_JAVA_OPTS="-Xms512m -Xmx512m"
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue