From c33bad2b4bcce67844989efe95886d193217cec3 Mon Sep 17 00:00:00 2001 From: maxlath Date: Thu, 24 Sep 2020 17:34:52 +0200 Subject: [PATCH] upgrade elasticsearch to 7.9.1 --- README.md | 6 ++++++ docker-compose.yml | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6a747b5..8d33da8 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,12 @@ echo "module.exports = { You can optionnally install translation dependencies of[inventaire-i18n](https://github.com/inventaire/inventaire-i18n/) [need more details] +### Troubleshooting +#### elasticsearch errors +- `max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]`: fix by running the command `sudo sysctl -w vm.max_map_count=262144` on your host machine + +See also [Elasticsearch with Docker](https://www.elastic.co/guide/en/elasticsearch/reference/7.9/docker.html) + ## Usage ```bash diff --git a/docker-compose.yml b/docker-compose.yml index a3e53f2..ec56dfb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -24,10 +24,12 @@ services: network_mode: host tty: true elasticsearch: - image: elasticsearch:2.4 + image: elasticsearch:7.9.1 environment: - 'http.host=0.0.0.0' - 'transport.host=127.0.0.1' + # See https://www.elastic.co/guide/en/elasticsearch/reference/7.9/docker.html + - 'discovery.type=single-node' ports : - '127.0.0.1:9200:9200' volumes: