-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
73 lines (67 loc) · 1.63 KB
/
docker-compose.yml
File metadata and controls
73 lines (67 loc) · 1.63 KB
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
name: mpctest
version: '3'
services:
bitcoind:
image: ghcr.io/getumbrel/docker-bitcoind:v29.0 # or another recent tag, includes bitcoin-cli
container_name: mpc_bitcoind
restart: on-failure
stop_grace_period: 30s
ports:
- 18443:18443
- 18444:18444
# ZMQ
- 28332:28332
- 28333:28333
volumes:
- bitcoin_data:/data/.bitcoin
command:
- -regtest=1 # ⬅️ This is the key argument
- -server=1
- -printtoconsole
- -rpcbind=0.0.0.0
- -rpcallowip=0.0.0.0/0
- -rpcuser=admin1 # ⬅️ ADD THIS
- -rpcpassword=123 # ⬅️ ADD THIS
- -rpcport=18443 # ⬅️ Correct RegTest RPC port
- -port=18444 # ⬅️ Correct RegTest P2P port
- -txindex=1
- -fallbackfee=0.00001
- -zmqpubrawblock=tcp://0.0.0.0:28332
- -zmqpubrawtx=tcp://0.0.0.0:28333
- -datadir=/data/.bitcoin
electrs:
image: ghcr.io/vulpemventures/electrs:latest
container_name: mpc_electrs
ports:
- "50001:50001" # TCP
- "50002:50002" # SSL
- "4224:4224" # HTTP monitoring
depends_on:
- bitcoind
entrypoint:
- /build/electrs
command:
- -vvvv
- --network
- regtest
- --daemon-dir
- /data/.bitcoin
- --daemon-rpc-addr
- mpc_bitcoind:18443
- --cookie
- admin1:123
- --http-addr
- 0.0.0.0:30000
- --electrum-rpc-addr
- 0.0.0.0:50001
- --cors
- "*"
- --jsonrpc-import
volumes:
- bitcoin_data:/data/.bitcoin:ro
restart: unless-stopped
volumes:
bitcoin_data:
networks:
default:
name: mpctest