Remove libssl-dev installation from install_osmclient
[osm/devops.git] / 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: