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