MediaWiki-Docker/Configuration recipes/ElasticSearch

ElasticSearchEdit

docker-compose.override.ymlEdit

version: '3.7'
services:
  elasticsearch:
    image: docker-registry.wikimedia.org/dev/cirrus-elasticsearch:6.8.23-s0
    # on an Apple M1 / arm64 system, you can use kostajh/wmf-elasticsearch-arm64:6.8.23,
    # see https://gitlab.wikimedia.org/kharlan/wmf-elasticsearch-arm64/
    volumes:
      - esdata:/usr/share/elasticsearch/data
    environment:
      - discovery.type=single-node
    ports:
      - 9200:9200
      - 9300:9300
volumes:
  esdata:
    driver: local

OperationsEdit

Reset elasticsearch dataEdit

  Warning: this will drop all the data you stored in this elasticsearch server
# Bring the deployment down
docker-compose down
docker volume rm mediawiki_esdata
# it might complain that a container is using it so delete it the following command
# and retry the previous one
docker rm paste_the_ID_returned_by_the_previous_command