From bf8a414a2c1fe2e8480409b33e154c0ee32fc61a Mon Sep 17 00:00:00 2001 From: kayryu Date: Tue, 26 Sep 2023 12:51:30 +0000 Subject: [PATCH] update yaml --- configs/watcher.toml | 2 +- docker-compose.yml | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/configs/watcher.toml b/configs/watcher.toml index f4fee44..a724f9f 100644 --- a/configs/watcher.toml +++ b/configs/watcher.toml @@ -4,7 +4,7 @@ node_call_port = 8720 # used to generate LocalKeyStore, used to get AccountId in substrate. identity = "0x0000000000000000000000000000000000000000000000000000000000000000" # database path -db_path = "/bnk/data" +db_path = "/host/data" # tokio console port console_port = 5555 # database start option diff --git a/docker-compose.yml b/docker-compose.yml index 9681c9c..1fd7927 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,11 +4,14 @@ services: image: boolnetwork/bnk-occlum-keyring-epid:v0.5.2 network_mode: "host" # ports: - # - "8730:8730" + # - "8720:8720" + # - "38700:38700" environment: RUST_LOG: info volumes: - - ./configs/watcher.toml:/bnk/watcher.toml + - ./configs:/configs + - ./data:/root/occlum_instance/data devices: - /dev/sgx/enclave - - /dev/sgx/provision \ No newline at end of file + - /dev/sgx/provision + command: bash -c 'cp /configs/watcher.toml /root/occlum_instance; source /root/.bashrc; cd /root/occlum_instance; occlum print mrsigner; occlum print mrenclave; occlum run /bin/bnk-watcher /host/watcher.toml' \ No newline at end of file