update toml and docker-compose

This commit is contained in:
kayryu 2023-09-26 10:22:32 +00:00
parent 345d280d78
commit b48e35d08b
5 changed files with 26 additions and 76 deletions

View File

@ -1,8 +0,0 @@
port = 18710
num_workers = 20
db_path = "/bnk/data"
token = ""
[options]
create_if_missing = true
atomic_flush = true

View File

@ -1,14 +0,0 @@
version = 1
attestation_style = 1
port = 18730
executors = 2
db_url = "http://10.0.0.5:18710"
msg_pool_url = "http://10.0.0.5:18720"
db_token = ""
cert_path = "../servers/test-ca/ca.cert"
round_time_limit = 60
clear_msg_interval = 180
time_check_interval = 30
retry_interval = 10
retry_times = 2
max_conn = 250

View File

@ -1,8 +0,0 @@
port = 18740
database_url = "/bnk/data/sqlite.db"
[default_watcher]
enabled = true
polling_interval = 30000
max_step = 2000
begin_height = 0

View File

@ -1,22 +1,27 @@
# local msg_pool server port.
msg_pool_port = 18720
# local node url for watcher
node_ws_url = "ws://10.0.0.5:9945"
# local database url for data storage.
db_url = "http://10.0.0.5:18710"
# local database token for database usage.
db_token = ""
# local sgx key server url
key_server_url = "https://10.0.0.5:18730"
node_ws_url = "ws://test-rpc-node-ws.bool.network:80"
# local node_call server port.
node_call_port = 8720
# used to generate LocalKeyStore, used to get AccountId in substrate.
identity = "0x0000000000000000000000000000000000000000000000000000000000000000"
# seconds per block
block_time = 3
# blocks per epoch
epoch_duration = 200
# database path
db_path = "/bnk/data"
# tokio console port
console_port = 5555
# database start option
[db_option]
create_if_missing = true
atomic_flush = true
[network_config]
port = 48700
boot_nodes = []
port = 38700
boot_nodes = ["/ip4/40.117.78.134/tcp/38700/p2p/12D3KooWRCdgTk5C6d4txvmfJbGKR2SFpiF5HgbpCVEEUUQGWR1c"]
share_peer_interval = 30
only_global_ips = true
only_global_ips = true
[key_server_config]
version = 7
attestation_style = 1
seal_policy = "MRSIGNER"
exe_policy = { Multiply = { executors = 8 } }
round_time_limit = 60
clear_msg_interval = 180

View File

@ -1,39 +1,14 @@
version: "3"
services:
bnk-database:
image: boolnetwork/bnk-database:latest
network_mode: "host"
# ports:
# - "8710:8710"
environment:
RUST_LOG: info
volumes:
- ./configs/db.toml:/bnk/db.toml
- ./data:/bnk/data
bnk-watcher:
image: boolnetwork/bnk-watcher:latest
network_mode: "host"
# ports:
# - "8720:8720"
environment:
RUST_LOG: info
volumes:
- ./configs/watcher.toml:/bnk/watcher.toml
depends_on:
- bnk-database
bnk-sgx-key-server:
image: boolnetwork/bnk-sgx-key-server:latest
bnk-occlum-keyring:
image: boolnetwork/bnk-occlum-keyring-epid:v0.5.2
network_mode: "host"
# ports:
# - "8730:8730"
environment:
RUST_LOG: info
volumes:
- ./configs/key.toml:/bnk/key.toml
- ./configs/watcher.toml:/bnk/watcher.toml
devices:
- /dev/sgx/enclave
- /dev/sgx/provision
depends_on:
- bnk-watcher
- /dev/sgx/provision