Adding persistance to Elasticsearch 65/6965/2
authorlavado <glavado@whitestack.com>
Mon, 26 Nov 2018 16:57:08 +0000 (11:57 -0500)
committerlavado <glavado@whitestack.com>
Mon, 26 Nov 2018 16:58:22 +0000 (11:58 -0500)
Change-Id: Ib9f8e7d18d910d42baee52ce7ffdc91d6e53daed
Signed-off-by: lavado <glavado@whitestack.com>
installers/docker/osm_elk/docker-compose.yml

index f7dc2aa..f18d2e2 100644 (file)
@@ -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: