Upgrading to elasticsearch 8 on docker-compose local installations. If you are upgrading to this release, make sure you delete your old search index otherwise you'll get errors in ES about an old index. Delete by running docker exec -it newsblur_web ./manage.py reindex_stories --reindex and docker exec -it newsblur_web ./manage.py reindex_feeds

This commit is contained in:
Samuel Clay 2025-02-21 16:30:55 -08:00
parent 20e49ec586
commit 077228004c
2 changed files with 27 additions and 2 deletions

File diff suppressed because one or more lines are too long

View file

@ -126,11 +126,16 @@ services:
db_elasticsearch:
container_name: db_elasticsearch
image: docker.elastic.co/elasticsearch/elasticsearch:7.16.3
mem_limit: 512mb
image: docker.elastic.co/elasticsearch/elasticsearch:8.17.0-arm64
mem_limit: 4g
restart: unless-stopped
environment:
- discovery.type=single-node
- "ES_JAVA_OPTS=-XX:UseSVE=0"
- "CLI_JAVA_OPTS=-XX:UseSVE=0"
- "_JAVA_OPTIONS=-XX:UseSVE=0"
- cluster.routing.allocation.disk.threshold_enabled=false
- xpack.security.enabled=false
ports:
- 9200:9200
- 9300:9300
@ -138,6 +143,7 @@ services:
- ./docker/volumes/elasticsearch:/usr/share/elasticsearch/data
- ./config/elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
# Dejavu is a web UI for Elasticsearch
dejavu:
container_name: dejavu
image: appbaseio/dejavu:3.6.0