version: '3.7'
services:
elasticsearch:
image: docker-registry.wikimedia.org/dev/cirrus-elasticsearch:7.10.2-s0
# on an Apple M1 / arm64 system, you can use kostajh/wmf-elasticsearch-arm64:7.10.2,
# 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
# 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