-
Notifications
You must be signed in to change notification settings - Fork 205
/
docker-compose.yml
168 lines (156 loc) · 3.9 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
x-bitcoind-common: &bitcoind-common
image: kylemanna/bitcoind:latest
stop_grace_period: 1m
volumes:
- data:/bitcoin/.bitcoin
restart: unless-stopped
x-addrindexrs-common: &addrindexrs-common
image: counterparty/addrindexrs:v0.4.6
volumes:
- data:/root/.bitcoin
- data:/data
environment:
- ADDRINDEXRS_JSONRPC_IMPORT=${ADDRINDEXRS_JSONRPC_IMPORT:-false}
restart: unless-stopped
x-counterparty-common: &counterparty-common
image: counterparty/counterparty:v10.8.0
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"
addrindexrs:
<<: *addrindexrs-common
profiles:
- mainnet
links:
- bitcoind
ports:
- "8432:8432"
command:
- "--indexer-rpc-host=0.0.0.0"
- "--daemon-rpc-host=bitcoind"
- "--cookie=rpc:rpc"
- "-vvv"
- "--db-dir=/data/"
counterparty-core:
<<: *counterparty-common
profiles:
- mainnet
links:
- bitcoind
- addrindexrs
ports:
- "4000:4000" # API v2
- "4100:4100" # API v1
command:
- start
- "--backend-connect=bitcoind"
- "--indexd-connect=addrindexrs"
- "--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"
addrindexrs-testnet:
<<: *addrindexrs-common
profiles:
- testnet
links:
- bitcoind-testnet
ports:
- "18432:18432"
command:
- "--network=testnet"
- "--indexer-rpc-host=0.0.0.0"
- "--daemon-rpc-host=bitcoind-testnet"
- "--cookie=rpc:rpc"
- "-vvv"
- "--db-dir=/data/"
counterparty-core-testnet:
<<: *counterparty-common
profiles:
- testnet
links:
- bitcoind-testnet
- addrindexrs-testnet
ports:
- "14000:14000" # API v2
- "14100:14100" # API v1
command:
- start
- "--testnet"
- "--backend-connect=bitcoind-testnet"
- "--indexd-connect=addrindexrs-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