-
Notifications
You must be signed in to change notification settings - Fork 20
/
docker-compose.yml
108 lines (108 loc) · 3.84 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
version: "3.8"
services:
interbtc:
image: "interlayhq/interbtc:1.25.3"
command:
- --rpc-external
- --ws-external
- --rpc-methods=unsafe
- --dev
- --instant-seal
ports:
- "9933:9933"
- "9944:9944"
bitcoind:
image: "ruimarinho/bitcoin-core:22"
command:
- -regtest
- -server
- -rpcbind=0.0.0.0
- -rpcallowip=0.0.0.0/0
- -rpcuser=rpcuser
- -rpcpassword=rpcpassword
- -fallbackfee=0.0002
ports:
- "18443:18443"
bitcoin-cli:
image: "ruimarinho/bitcoin-core:22"
command:
- /bin/sh
- -c
- |
bitcoin-cli -regtest -rpcconnect=bitcoind -rpcwait -rpcuser=rpcuser -rpcpassword=rpcpassword createwallet Alice
ALICE_ADDRESS=$$(bitcoin-cli -regtest -rpcconnect=bitcoind -rpcwait -rpcuser=rpcuser -rpcpassword=rpcpassword -rpcwallet=Alice getnewaddress)
# coins need 100 confirmations to be spendable
bitcoin-cli -regtest -rpcconnect=bitcoind -rpcwait -rpcuser=rpcuser -rpcpassword=rpcpassword generatetoaddress 101 $${ALICE_ADDRESS}
electrs:
image: "interlayhq/electrs:latest"
command:
- electrs
- -vvvv
- --network
- regtest
- --jsonrpc-import
- --cors
- "*"
- --cookie
- "rpcuser:rpcpassword"
- --daemon-rpc-addr
- "bitcoind:18443"
- --http-addr
- "[::0]:3002"
- --index-unspendables
ports:
- "3002:3002"
restart: always
oracle:
image: "interlayhq/interbtc-clients:oracle-parachain-metadata-kintsugi-1.23.0"
command:
- oracle-parachain-metadata-kintsugi
- --keyring=bob
- --btc-parachain-url=ws://interbtc:9944
environment:
RUST_LOG: info
volumes:
- ./docker/oracle-config.json:/oracle-config.json
vault_1:
image: "interlayhq/interbtc-clients:vault-parachain-metadata-kintsugi-1.23.0"
command:
- vault-parachain-metadata-kintsugi
- --keyfile=/keyfile.json
- --keyname=vault_1
- --auto-register=KSM=10000000000000
- --auto-register=KINT=180000000000000
- --btc-parachain-url=ws://interbtc:9944
- --bitcoin-relay-start-height=1
environment: &client-env
BITCOIN_RPC_URL: http://bitcoind:18443
BITCOIN_RPC_USER: rpcuser
BITCOIN_RPC_PASS: rpcpassword
RUST_LOG: info
volumes:
- ./docker/vault_1-keyfile.json:/keyfile.json
vault_2:
image: "interlayhq/interbtc-clients:vault-parachain-metadata-kintsugi-1.23.0"
command:
- vault-parachain-metadata-kintsugi
- --keyfile=/keyfile.json
- --keyname=vault_2
- --auto-register=KSM=10000000000000
- --auto-register=KINT=180000000000000
- --btc-parachain-url=ws://interbtc:9944
- --bitcoin-relay-start-height=1
environment: *client-env
volumes:
- ./docker/vault_2-keyfile.json:/keyfile.json
vault_3:
image: "interlayhq/interbtc-clients:vault-parachain-metadata-kintsugi-1.23.0"
command:
- vault-parachain-metadata-kintsugi
- --keyfile=/keyfile.json
- --keyname=vault_3
- --auto-register=KSM=10000000000000
- --auto-register=KINT=180000000000000
- --btc-parachain-url=ws://interbtc:9944
- --bitcoin-relay-start-height=1
environment: *client-env
volumes:
- ./docker/vault_3-keyfile.json:/keyfile.json