-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbitcoin-private.yml
59 lines (55 loc) · 1.13 KB
/
bitcoin-private.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
networks:
bitcoinnetwork:
driver: bridge
services:
bitcoin-core:
container_name: bitcoin-core
image: bitcoin/bitcoin:latest
command:
-printtoconsole
-regtest=1
-txindex
-rpcuser=admin
-rpcpassword=admin
-rpcallowip=0.0.0.0/0
-rpcbind=0.0.0.0
-server
volumes:
- bitcoin:/home/bitcoin/.bitcoin
ports:
- 18443:18443
networks:
- bitcoinnetwork
healthcheck:
test: bitcoin-cli -regtest -rpcuser=admin -rpcpassword=admin getmininginfo || exit 1
interval: 10s
timeout: 5s
retries: 3
# miner:
# build:
# context: .
# dockerfile: ./miner.Dockerfile
# command:
# - admin
# - admin
# - bitcoin-core
# depends_on:
# bitcoin-core:
# condition: service_healthy
# networks:
# - bitcoinnetwork
rpc-miner:
build:
context: .
dockerfile: ./rpc-miner.Dockerfile
command:
- admin
- admin
- bitcoin-core
depends_on:
bitcoin-core:
condition: service_healthy
networks:
- bitcoinnetwork
volumes:
bitcoin: