From: lavado Date: Mon, 26 Nov 2018 16:57:08 +0000 (-0500) Subject: Adding persistance to Elasticsearch X-Git-Tag: v5.0.0~9^2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=20a3a21a61473ab0f524f84df31bcc750e322104;p=osm%2Fdevops.git Adding persistance to Elasticsearch Change-Id: Ib9f8e7d18d910d42baee52ce7ffdc91d6e53daed Signed-off-by: lavado --- diff --git a/installers/docker/osm_elk/docker-compose.yml b/installers/docker/osm_elk/docker-compose.yml index f7dc2aae..f18d2e2a 100644 --- a/installers/docker/osm_elk/docker-compose.yml +++ b/installers/docker/osm_elk/docker-compose.yml @@ -1,5 +1,8 @@ version: '3' +volumes: + elasticsearch_data: + services: filebeat: @@ -26,7 +29,7 @@ services: - ./metricbeat.yml:/usr/share/metricbeat/metricbeat.yml - /var/run/docker.sock:/var/run/docker.sock:ro command: --strict.perms=false -e -c /usr/share/metricbeat/metricbeat.yml -system.hostfs=/hostfs # -e flag to log to stderr and disable syslog/file output - networks: + networks: - elk depends_on: ['elasticsearch', 'kibana'] @@ -34,6 +37,7 @@ services: image: docker.elastic.co/elasticsearch/elasticsearch-oss:${ELASTIC_VERSION:-6.4.2} volumes: - ./elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro + - elasticsearch_data:/usr/share/elasticsearch/data ports: - "9200:9200" environment: