-
Notifications
You must be signed in to change notification settings - Fork 2
/
compose.yml
128 lines (118 loc) · 4.17 KB
/
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
name: signet
services:
knots:
image: 1maa/bitcoin:v27.1.knots20240801
command: -conf=/home/bitcoin/.bitcoin/bitcoin.conf
restart: unless-stopped
volumes:
- ./knots.conf:/home/bitcoin/.bitcoin/bitcoin.conf
- knots_data:/home/bitcoin/.bitcoin
wallet-setup:
image: 1maa/bitcoin:v27.1.knots20240801
environment:
- RPC_ADDR=knots
- WALLET_NAME=BBO
- RECV_XPRV=tr(tprv8ZgxMBicQKsPdksbPS6u4aLDgjkt5LWM3vDscWSQKCTPsgKiekL3XiTb5HUHgyyr6e3pTn4JUcZUnPdAbbp3qtUmwmvAYwJHrJQiPMBMpum/86h/1h/0h/0/*)#ale2lp6q
- CHNG_XPRV=tr(tprv8ZgxMBicQKsPdksbPS6u4aLDgjkt5LWM3vDscWSQKCTPsgKiekL3XiTb5HUHgyyr6e3pTn4JUcZUnPdAbbp3qtUmwmvAYwJHrJQiPMBMpum/86h/1h/0h/1/*)#vtutz52c
- MINE_XPRV=tr(tprv8ZgxMBicQKsPdksbPS6u4aLDgjkt5LWM3vDscWSQKCTPsgKiekL3XiTb5HUHgyyr6e3pTn4JUcZUnPdAbbp3qtUmwmvAYwJHrJQiPMBMpum/86h/1h/0h/2/*)#k7ngvzne
entrypoint:
- sh
- -x
- -c
- |
bitcoin-cli -rpcconnect=$${RPC_ADDR} -named createwallet wallet_name=$${WALLET_NAME} blank=true avoid_reuse=true load_on_startup=true
bitcoin-cli -rpcconnect=$${RPC_ADDR} importdescriptors '[{"desc":"'$${RECV_XPRV}'","range":999,"timestamp":"now","active":true,"internal":false}]'
bitcoin-cli -rpcconnect=$${RPC_ADDR} importdescriptors '[{"desc":"'$${CHNG_XPRV}'","range":999,"timestamp":"now","active":true,"internal":true}]'
bitcoin-cli -rpcconnect=$${RPC_ADDR} importdescriptors '[{"desc":"'$${MINE_XPRV}'","range":999,"timestamp":"now","active":false,"internal":true}]'
volumes:
- ./knots.conf:/home/bitcoin/.bitcoin/bitcoin.conf
miner:
image: 1maa/bitcoin:v27.1.knots20240801
environment:
- MINE_XPUB=tr(tpubDCZH8j9YS7HgDkiyC3cXbCKLCLk5j7mN6aTShpB3pF7bs9EXuctzTMD76UQDemvi9PZRYEnPHH8exJhFwR7pBVkxYwUquNWCk9DZk9qyshZ/2/*)#5eqky29x
- RPC_ADDR=knots
- RPC_PWD=knots
- RPC_USER=knots
entrypoint:
- sh
- -x
- -c
- miner --cli="bitcoin-cli -rpcuser=$${RPC_USER} -rpcpassword=$${RPC_PWD} -rpcconnect=$${RPC_ADDR}" generate --descriptor $${MINE_XPUB} --grind-cmd="bitcoin-util grind" --min-nbits --ongoing
restart: unless-stopped
fulcrum:
image: cculianu/fulcrum:v1.11.1
command: Fulcrum /etc/fulcrum.conf
ports:
- 127.0.0.1:60601:60601
restart: unless-stopped
volumes:
- ./fulcrum.conf:/etc/fulcrum.conf
- fulcrum_data:/data
mempool-web:
image: mempool/frontend:v3.0.1
environment:
- BACKEND_MAINNET_HTTP_HOST=mempool-api
- FRONTEND_HTTP_PORT=8080
- MAINNET_ENABLED=false
- ROOT_NETWORK=signet
- SIGNET_ENABLED=true
ports:
- 127.0.0.1:8080:8080
restart: unless-stopped
mempool-api:
image: mempool/backend:v3.0.1
environment:
- CORE_RPC_HOST=knots
- CORE_RPC_PASSWORD=knots
- CORE_RPC_PORT=38332
- CORE_RPC_USERNAME=knots
- DATABASE_DATABASE=mempool
- DATABASE_ENABLED=true
- DATABASE_HOST=mariadb
- DATABASE_PASSWORD=mempool
- DATABASE_USERNAME=mempool
- ELECTRUM_HOST=fulcrum
- ELECTRUM_PORT=60601
- ELECTRUM_TLS_ENABLED=false
- MEMPOOL_BACKEND=electrum
- MEMPOOL_NETWORK=signet
- STATISTICS_ENABLED=false
restart: unless-stopped
mariadb:
image: mariadb:11.5
environment:
- MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=true
- MARIADB_DATABASE=mempool
- MARIADB_PASSWORD=mempool
- MARIADB_USER=mempool
volumes:
- mariadb_data:/var/lib/mysql
ports:
- 127.0.0.1:3306:3306
restart: unless-stopped
redis:
image: redis:7-alpine
restart: unless-stopped
volumes:
- redis_data:/data
faucet:
image: 1maa/bbo-faucet:latest
environment:
- FAUCET_BITCOIN_RPC_USER=knots
- FAUCET_BITCOIN_RPC_PASS=knots
- FAUCET_NAME=BBO Signet Playground
- FAUCET_MAX_ONE_TIME_BTC=50.0
- FAUCET_USER_SESSION_TTL=2
- FAUCET_GLOBAL_SESSION_TTL=2
- FAUCET_USER_SESSION_MAX_BTC=200.0
- FAUCET_GLOBAL_SESSION_MAX_BTC=5000.0
- FAUCET_MEMPOOL_URL=http://localhost:8080
- FAUCET_FEE_RATE=0.0
ports:
- 127.0.0.1:8123:8080
restart: unless-stopped
volumes:
fulcrum_data:
knots_data:
mariadb_data:
redis_data: