Adding persistent volume to POL 33/6733/1
authorlavado <glavado@whitestack.com>
Fri, 19 Oct 2018 21:59:12 +0000 (16:59 -0500)
committerlavado <glavado@whitestack.com>
Fri, 19 Oct 2018 21:59:12 +0000 (16:59 -0500)
Change-Id: I64b42389980f00c989df67de0ff83f6521271ea8
Signed-off-by: lavado <glavado@whitestack.com>
installers/docker/docker-compose.yaml

index e45fabd..ab44917 100644 (file)
@@ -3,6 +3,7 @@ volumes:
   ro_db:
   mongo_db:
   mon_db:
+  pol_db:
   osm_packages:
   keystone_db:
 networks:
@@ -148,7 +149,10 @@ services:
     image: ${DOCKER_USER:-osm}/pol:${TAG:-latest}
     networks:
       - netOSM
+    volumes:
+      - pol_db:/app/database
     environment:
+      OSMPOL_SQL_DATABASE_URI: sqlite:///app/database/policy_module.db
       BROKER_URI: kafka:9092
     #depends_on:
     #  - kafka