-
Notifications
You must be signed in to change notification settings - Fork 42
/
docker-compose.yml
89 lines (82 loc) · 2.68 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
version: "3.8"
services:
bitcoind:
image: "lightninglabs/bitcoin-core:25"
command:
- -regtest
- -server
- -rpcbind=0.0.0.0
- -rpcallowip=0.0.0.0/0
- -rpcuser=rpcuser
- -rpcpassword=rpcpassword
- -fallbackfee=0.0002
- -txindex
ports:
- "18443:18443"
bitcoin-cli:
image: "lightninglabs/bitcoin-core:25"
command:
- /bin/sh
- -c
- |
bitcoin-cli -regtest -rpcconnect=bitcoind -rpcwait -rpcuser=rpcuser -rpcpassword=rpcpassword createwallet Alice
bitcoin-cli -regtest -rpcconnect=bitcoind -rpcwait -rpcuser=rpcuser -rpcpassword=rpcpassword loadwallet 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}
# automatically mine 1 block every 10 seconds
trap 'exit 130' TERM INT EXIT
while true; do
bitcoin-cli -regtest -rpcconnect=bitcoind -rpcwait -rpcuser=rpcuser -rpcpassword=rpcpassword generatetoaddress 1 $${ALICE_ADDRESS}
sleep 10 &
wait $!
done
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
anvil:
image: "ghcr.io/foundry-rs/foundry:latest"
entrypoint:
- anvil
- --host
- "0.0.0.0"
- --chain-id
- "901"
ports:
- "8545:8545"
restart: always
ordinals:
platform: linux/amd64
image: "interlayhq/ord:latest"
command:
- --rpc-url
- bitcoind:18443
- --bitcoin-rpc-pass
- rpcpassword
- --bitcoin-rpc-user
- rpcuser
- --regtest
- server
- --enable-json-api
- --http-port
- "3003"
ports:
- "3003:3003"
restart: always