From: gcalvino Date: Thu, 10 May 2018 11:29:17 +0000 (+0200) Subject: Adding persistance to dockers deployment X-Git-Tag: v4.0.0~12 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=796aafb2e62ae461458cf4135c0342b3b7d1a3a1;p=osm%2Fdevops.git Adding persistance to dockers deployment Signed-off-by: gcalvino --- diff --git a/installers/docker/docker-compose.yaml b/installers/docker/docker-compose.yaml index 01b4d66b..3b2ecd5b 100644 --- a/installers/docker/docker-compose.yaml +++ b/installers/docker/docker-compose.yaml @@ -1,6 +1,9 @@ version: '3' volumes: - OSMstorage: + ro_db: + mongo_db: + mon_db: + osm_packages: networks: netOSM: external: true @@ -34,12 +37,14 @@ services: # - "27017:27017" networks: - netOSM + volumes: + - mongo_db:/data/db nbi: image: osm/nbi networks: - netOSM volumes: - - OSMstorage:/app/storage + - osm_packages:/app/storage environment: OSMNBI_DATABASE_HOST: mongo OSMNBI_MESSAGE_HOST: kafka @@ -52,8 +57,8 @@ services: image: osm/lcm networks: - netOSM - volumes: - - OSMstorage:/app/storage +# volumes: +# - OSMstorage:/app/storage environment: OSMLCM_RO_HOST: ro OSMLCM_DATABASE_HOST: mongo @@ -68,6 +73,8 @@ services: image: mysql:5 networks: - netOSM + volumes: + - ro_db:/var/lib/mysql env_file: - ./ro-db.env # ports: @@ -88,8 +95,11 @@ services: image: osm/mon networks: - netOSM + volumes: + - mon_db:/app/database environment: BROKER_URI: kafka:9092 + DATABASE: sqlite:///app/database/mon_sqlite.db env_file: - ./mon.env #depends_on: