-
Notifications
You must be signed in to change notification settings - Fork 204
/
Copy pathdocker-compose.yml
124 lines (115 loc) · 2.91 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
114
115
116
117
118
119
120
121
122
123
124
x-bitcoind-common: &bitcoind-common
image: kylemanna/bitcoind:latest
stop_grace_period: 1m
volumes:
- data:/bitcoin/.bitcoin
restart: unless-stopped
x-counterparty-common: &counterparty-common
image: counterparty/counterparty:v10.9.0-rc.1
stop_grace_period: 1m
volumes:
- data:/root/.bitcoin
- data:/data
environment:
- XDG_DATA_HOME=/data/
- XDG_LOG_HOME=/data/
restart: unless-stopped
services:
####################
# Mainnet Services #
####################
bitcoind:
<<: *bitcoind-common
profiles:
- mainnet
ports:
- "8332:8332"
- "9332:9332"
- "9333:9333"
command:
- "-chain=main"
- "-rpcallowip=0.0.0.0/0"
- "-rpcbind=0.0.0.0"
- "-rpcuser=rpc"
- "-rpcpassword=rpc"
- "-listen=1"
- "-server=1"
- "-printtoconsole=1"
- "-addresstype=legacy"
- "-txindex=1"
- "-prune=0"
- "-dbcache=4000"
- "-mempoolfullrbf=1"
- "-zmqpubrawtx=tcp://0.0.0.0:9332"
- "-zmqpubhashtx=tcp://0.0.0.0:9332"
- "-zmqpubsequence=tcp://0.0.0.0:9332"
- "-zmqpubrawblock=tcp://0.0.0.0:9333"
counterparty-core:
<<: *counterparty-common
profiles:
- mainnet
links:
- bitcoind
ports:
- "4000:4000" # API v2
- "4100:4100" # API v1
command:
- start
- "--backend-connect=bitcoind"
- "--rpc-host=0.0.0.0"
- "--api-host=0.0.0.0"
- "--catch-up=bootstrap"
#- "--verbose"
###################
# Testnet Services #
###################
bitcoind-testnet:
<<: *bitcoind-common
profiles:
- testnet
ports:
- "18332:18332"
- "19332:19332"
- "19333:19333"
command:
- "-chain=test"
- "-rpcallowip=0.0.0.0/0"
- "-rpcbind=0.0.0.0"
- "-rpcuser=rpc"
- "-rpcpassword=rpc"
- "-listen=1"
- "-server=1"
- "-printtoconsole=1"
- "-addresstype=legacy"
- "-txindex=1"
- "-prune=0"
- "-dbcache=4000"
- "-mempoolfullrbf=1"
- "-zmqpubrawtx=tcp://0.0.0.0:19332"
- "-zmqpubhashtx=tcp://0.0.0.0:19332"
- "-zmqpubsequence=tcp://0.0.0.0:19332"
- "-zmqpubrawblock=tcp://0.0.0.0:19333"
counterparty-core-testnet:
<<: *counterparty-common
profiles:
- testnet
links:
- bitcoind-testnet
ports:
- "14000:14000" # API v2
- "14100:14100" # API v1
command:
- start
- "--testnet"
- "--backend-connect=bitcoind-testnet"
- "--rpc-host=0.0.0.0"
- "--api-host=0.0.0.0"
- "--catch-up=bootstrap"
#- "--verbose"
volumes:
data:
driver: local
driver_opts:
type: none
o: bind
device: ${COUNTERPARTY_DOCKER_DATA:-${XDG_DATA_HOME:-~/.local/share}}/counterparty-docker-data