diff --git a/ansible/roles/web/templates/docker-compose.j2 b/ansible/roles/web/templates/docker-compose.j2 index 88fe9a8..c3c4d95 100644 --- a/ansible/roles/web/templates/docker-compose.j2 +++ b/ansible/roles/web/templates/docker-compose.j2 @@ -8,7 +8,7 @@ web: links: - redis - postgres - - elasticsearch + - elasticsearch:2 ports: - "5000:5000" environment: diff --git a/publichealth/settings/production.py b/publichealth/settings/production.py index db87832..5d06f81 100644 --- a/publichealth/settings/production.py +++ b/publichealth/settings/production.py @@ -145,7 +145,7 @@ if REDIS_LOCATION is not None: if 'ELASTICSEARCH_URL' in env: WAGTAILSEARCH_BACKENDS = { 'default': { - 'BACKEND': 'wagtail.wagtailsearch.backends.elasticsearch5', + 'BACKEND': 'wagtail.wagtailsearch.backends.elasticsearch2', 'URLS': [env['ELASTICSEARCH_URL']], 'INDEX': APP_NAME, 'ATOMIC_REBUILD': True,