-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
113 lines (104 loc) · 3.01 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
109
110
111
112
113
version: '3'
services:
knots:
image: 1maa/bitcoin:v26.1.knots20240325
command: -conf=/etc/knots.conf
restart: on-failure
volumes:
- ./knots.conf:/etc/knots.conf
- knots_data:/home/bitcoin/.bitcoin
wallet-setup:
image: 1maa/bitcoin:v26.1.knots20240325
environment:
- PRIVATE_KEY=cRWA13VYwVPgkUTGMTxjeoLvsFd9TnH8BYQtyMVpjsn3N5SSitEg
- RPC_ADDR=knots
- RPC_PWD=easepay
- RPC_USER=easepay
- WALLET_NAME=GEO
entrypoint:
- sh
- -c
- |
bitcoin-cli -rpcuser=$${RPC_USER} -rpcpassword=$${RPC_PWD} -rpcconnect=$${RPC_ADDR} -signet -named createwallet wallet_name=$${WALLET_NAME} descriptors=false
bitcoin-cli -rpcuser=$${RPC_USER} -rpcpassword=$${RPC_PWD} -rpcconnect=$${RPC_ADDR} -signet -named importprivkey $${PRIVATE_KEY}
miner:
image: 1maa/signet-miner:latest
environment:
- MINING_DIFFICULTY=1d00ffff
- REWARDS_BTC_ADDRESS=mty3Xnn8JhUAxNN9kzX33eCD3e5zZCnQWJ
- RPC_ADDR=knots
- RPC_PWD=easepay
- RPC_USER=easepay
entrypoint:
- sh
- -c
- miner --cli="bitcoin-cli -rpcuser=$${RPC_USER} -rpcpassword=$${RPC_PWD} -rpcconnect=$${RPC_ADDR}" generate --address $${REWARDS_BTC_ADDRESS} --grind-cmd="bitcoin-util grind" --nbits=$${MINING_DIFFICULTY} --ongoing
restart: on-failure
electrs:
image: 1maa/electrs:latest
command: --conf /etc/electrs.conf
ports:
- 127.0.0.1:60601:60601
restart: on-failure
volumes:
- ./electrs.conf:/etc/electrs.conf
- electrs_data:/var/lib/electrs
mempool-web:
image: mempool/frontend:v3.0.0-dev8
environment:
- BACKEND_MAINNET_HTTP_HOST=mempool-api
- FRONTEND_HTTP_PORT=8080
ports:
- 127.0.0.1:8080:8080
restart: on-failure
mempool-api:
image: mempool/backend:v3.0.0-dev8
environment:
- CORE_RPC_HOST=knots
- CORE_RPC_PASSWORD=easepay
- CORE_RPC_PORT=38332
- CORE_RPC_USERNAME=easepay
- DATABASE_DATABASE=mempool
- DATABASE_ENABLED=true
- DATABASE_HOST=mariadb
- DATABASE_PASSWORD=mempool
- DATABASE_USERNAME=mempool
- ELECTRUM_HOST=electrs
- ELECTRUM_PORT=60601
- ELECTRUM_TLS_ENABLED=false
- MEMPOOL_BACKEND=electrum
- MEMPOOL_NETWORK=signet
- STATISTICS_ENABLED=false
restart: on-failure
mariadb:
image: mariadb:11.3
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: on-failure
mongo:
image: mongo:7.0
restart: on-failure
volumes:
- mongo_data:/data
faucet:
image: 1maa/signet-faucet:latest
environment:
- BITCOIND_HOST=knots
- BITCOIND_USER=easepay
- BITCOIND_PASS=easepay
- MONGODB_HOST=mongo
ports:
- 127.0.0.1:8123:8123
restart: on-failure
volumes:
electrs_data:
knots_data:
mariadb_data:
mongo_data: