From 20a3a21a61473ab0f524f84df31bcc750e322104 Mon Sep 17 00:00:00 2001 From: lavado Date: Mon, 26 Nov 2018 11:57:08 -0500 Subject: [PATCH] Adding persistance to Elasticsearch Change-Id: Ib9f8e7d18d910d42baee52ce7ffdc91d6e53daed Signed-off-by: lavado --- installers/docker/osm_elk/docker-compose.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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: -- 2.25.1