From de3cd290e2d93b8555f758eed0dd8623c0a9a998 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Mon, 18 Sep 2023 18:11:47 +0530 Subject: [PATCH] Persist Nitro node data to a volume --- app/data/compose/docker-compose-watcher-mobymask-v3.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/data/compose/docker-compose-watcher-mobymask-v3.yml b/app/data/compose/docker-compose-watcher-mobymask-v3.yml index 4b12debd..8c351ae7 100644 --- a/app/data/compose/docker-compose-watcher-mobymask-v3.yml +++ b/app/data/compose/docker-compose-watcher-mobymask-v3.yml @@ -62,7 +62,7 @@ services: - ../config/watcher-mobymask-v2/generate-peer-ids.sh:/app/packages/peer/generate-peer-ids.sh - peers_ids:/peer-ids - # Optionally deploys the Nitro contracts and sets them at the required path + # Optionally deploys the Nitro contracts; sets them at the required path # Starts the MobyMask v3 watcher server mobymask-watcher-server: image: cerc/watcher-mobymask-v3:local @@ -102,6 +102,7 @@ services: - ../config/watcher-mobymask-v3/watcher-config-rates.toml:/app/environments/rates.toml - ../config/watcher-mobymask-v3/keys:/app/keys - ../config/watcher-mobymask-v3/start-server.sh:/app/start-server.sh + - nitro_data:/app/out/nitro-db - peers_ids:/app/peers - nitro_addresses:/nitro - mobymask_deployment:/server @@ -122,5 +123,6 @@ services: volumes: mobymask_watcher_db_data: peers_ids: - nitro_addresses: mobymask_deployment: + nitro_addresses: + nitro_data: