Skip to content

Commit 2334483

Browse files
authored
[Improvement] Modify networking + Add collator service
Added `network_mode: host` mode to the services for better interaction. Added collator service into the list.
1 parent 63e7205 commit 2334483

File tree

1 file changed

+23
-5
lines changed

1 file changed

+23
-5
lines changed

scripts/vault/docker-compose.yml

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
version: "3.8"
22
services:
33
bitcoind:
4-
image: "ruimarinho/bitcoin-core:0.20"
4+
image: "ruimarinho/bitcoin-core:0.21"
5+
network_mode: host
56
command:
67
- -testnet
78
- -server
@@ -13,17 +14,17 @@ services:
1314
- -rpcuser=rpcuser
1415
- -rpcpassword=rpcpassword
1516
- -fallbackfee=0.0002
16-
ports:
17-
- "18332:18332"
1817
volumes:
1918
- ./cache:/home/bitcoin/.bitcoin/testnet3
2019
restart: unless-stopped
2120
vault:
2221
image: "interlayhq/interbtc-clients:vault-0-8-2"
22+
network_mode: host
2323
command:
2424
- vault
25+
- --no-bitcoin-block-relay
2526
- --bitcoin-rpc-url
26-
- "http://bitcoind:18332"
27+
- "http://localhost:18332"
2728
- --bitcoin-rpc-user
2829
- rpcuser
2930
- --bitcoin-rpc-pass
@@ -39,11 +40,28 @@ services:
3940
- --telemetry-url
4041
- "https://api.interlay.io/telemetry"
4142
- --btc-parachain-url
42-
- "wss://api.interlay.io/parachain"
43+
# "--btc-parachain-url" can be set to '- "ws://localhost:9944"' to repoint vault for accessing parachain through collator service
44+
- "https://api.interlay.io/parachain"
45+
- --no-api
4346
environment:
4447
RUST_LOG: info
4548
volumes:
4649
- type: bind
4750
source: ./keyfile.json
4851
target: /keyfile.json
4952
restart: unless-stopped
53+
collator:
54+
image: "interlayhq/interbtc:interbtc-standalone-0.8.5"
55+
network_mode: host
56+
command:
57+
- interbtc-standalone
58+
- --base-path=/interbtc
59+
- --chain=/interbtc/testnet.json
60+
- --unsafe-ws-external
61+
- --rpc-methods=Unsafe
62+
- --rpc-cors=all
63+
environment:
64+
RUST_LOG: info
65+
volumes:
66+
- ./interbtc:/interbtc
67+
restart: unless-stopped

0 commit comments

Comments
 (0)