-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (34 loc) · 894 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (34 loc) · 894 Bytes
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
version: '3.8'
services:
bitcoin-regtest:
image: ruimarinho/bitcoin-core:latest
container_name: bitcoin-regtest
ports:
- "18443:18443" # Regtest RPC port
- "18444:18444" # Regtest P2P port
volumes:
- regtest_data:/home/bitcoin/.bitcoin
environment:
- BITCOIN_RPC_USER=btx-user
- BITCOIN_RPC_PASSWORD=btx-pass
- BITCOIN_WALLETS=btx-test-wallet
command: >
bitcoind
-regtest
-server
-rpcbind=0.0.0.0
-rpcallowip=0.0.0.0/0
-rpcuser=btx-user
-rpcpassword=btx-pass
-fallbackfee=0.0002
-txindex=1
-printtoconsole
restart: unless-stopped
healthcheck:
test: ["CMD", "bitcoin-cli", "-regtest", "-rpcuser=btx-user", "-rpcpassword=btx-pass", "getblockchaininfo"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
volumes:
regtest_data: