-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
186 lines (185 loc) · 5.69 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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
version: "3"
services:
hansel:
container_name: hansel
hostname: hansel
image: bitcoininaction/hansel:latest
build:
context: .
dockerfile: Dockerfile.hansel
environment:
- BX_CONFIG=/opt/wald/bx.cfg
volumes:
- ./bitcoin-core/bin/bitcoin-cli:/usr/bin/bitcoin-cli
- ./bitcoin-core/bin/bitcoind:/usr/bin/bitcoind
- ./hansel:/root/.bitcoin
- ./wald:/opt/wald
- ./wald/vim/.vimrc:/root/.vimrc
entrypoint: /opt/wald/entrypoint.sh
working_dir: /opt/wald
ports:
- 18443:18443
- 18444:18444
gretel:
container_name: gretel
hostname: gretel
image: bitcoininaction/hansel:latest
environment:
- BX_CONFIG=/opt/wald/bx.cfg
volumes:
- ./bitcoin-core/bin/bitcoin-cli:/usr/bin/bitcoin-cli
- ./bitcoin-core/bin/bitcoind:/usr/bin/bitcoind
- ./gretel:/root/.bitcoin
- ./wald:/opt/wald
- ./wald/vim/.vimrc:/root/.vimrc
entrypoint: /opt/wald/entrypoint.sh
working_dir: /opt/wald
links:
- hansel
ports:
- 28444:18444
oz:
container_name: oz
hostname: oz
image: node
volumes:
- ./oz:/opt/emerald-city
entrypoint: ["/opt/emerald-city/entrypoint.sh"]
working_dir: /opt/emerald-city
links:
- bitcoinjs-regtest-server
- gretel
blockchain-explorer:
container_name: blockchain-explorer
hostname: blockchain-explorer
image: blockstream/esplora
environment:
- DISABLE_TOR=1 # blockchain-exporer/runs.sh#L37-L45
- DISABLE_GENERATETOADDRESS=1 # blockchain-exporer/runs.sh#L256-L263
ports:
- 50001:50001
- 8094:80
volumes:
- ./blockchain-explorer:/data
- ./blockchain-explorer/run.sh:/srv/explorer/run.sh # patch to disable Tor and auto mining of 100 blocks...
command: ['/srv/explorer/run.sh', 'bitcoin-regtest', 'explorer']
links:
- gretel
bitcoinjs-regtest-server:
container_name: bitcoinjs-regtest-server
hostname: bitcoinjs-regtest-server
image: junderw/bitcoinjs-regtest-server
# uncomment if you want to connect
# bitcoinjs-lib from outside
# ports:
# - 8888:8080
links:
- hansel
volumes:
- ./bitcoinjs-regtest-server/bitcoin-data:/root/.bitcoin
- ./bitcoinjs-regtest-server/run_bitcoind_service.sh:/root/run_bitcoind_service.sh patch to disable mining of 432 blocks...
# blockchain-reader:
# container_name: blockchain-reader
# hostname: blockchain-reader
# image: bitcoininaction/blockchain-reader
# build:
# context: .
# dockerfile: Dockerfile.blockchain-reader
# ports:
# - 8080:8080 # Tomcat manager w/ user "tomcat" and pwd "tomcat" http://localhost:8080/manager/html
# command: ["/opt/entrypoint.sh"]
# volumes:
# - ./blockchain-reader/tomcat/tomcat-users.xml:/usr/local/tomcat/conf/tomcat-users.xml
# - ./blockchain-reader/tomcat/manager-webapp-context.xml:/opt/manager-webapp-context.xml
# - ./blockchain-reader/entrypoint.sh:/opt/entrypoint.sh
# lightningd:
# container_name: lightningd
# hostname: lightningd
# image: bitcoininaction/lightningd:latest
# build:
# context: .
# dockerfile: Dockerfile.lightningd
# ports:
# - 9735:9735
# - 9737:9737
# volumes:
# - ./lightningd/lightning:/root/.lightning
# - ./lightningd/bitcoin:/root/.bitcoin
# - ./lightningd/entrypoint.sh:/opt/entrypoint.sh
# - ./lightningd/spark-wallet:/root/.spark-wallet
# links:
# - hansel
# entrypoint: /opt/entrypoint.sh
# lnd:
# container_name: lnd
# hostname: lnd
# image: lightninglabs/lnd:v0.12.1-beta
# volumes:
# - ./lnd/lnd-data:/root/.lnd
# - ./lnd/entrypoint.sh:/opt/entrypoint.sh
# entrypoint: ["/opt/entrypoint.sh"]
# environment:
# - NETWORK=regtest
# - CHAIN=bitcoin
# - BACKEND=bitcoind
# - RPCUSER=gretel
# - RPCPASS=1337
# - HOSTNAME=0.0.0.0
# - BACKEND_RPC_HOST=gretel
# - BACKEND_ZMQPUBRAWBLOCK=tcp://gretel:38444
# - BACKEND_ZMQPUBRAWTX=tcp://gretel:48444
# ports:
# - 10009:10009
# - 19735:9735
# links:
# - gretel
# - lightningd
mempool-web:
environment:
FRONTEND_HTTP_PORT: "8080"
BACKEND_MAINNET_HTTP_HOST: "mempool-api"
image: mempool/frontend:latest
user: "1000:1000"
restart: on-failure
stop_grace_period: 1m
command: "./wait-for mempool-db:3306 --timeout=720 -- nginx -g 'daemon off;'"
ports:
- 18080:8080
links:
- mempool-api
- mempool-db
mempool-api:
environment:
MEMPOOL_BACKEND: "none"
CORE_RPC_HOST: "hansel"
CORE_RPC_PORT: "18443"
CORE_RPC_USERNAME: "hansel"
CORE_RPC_PASSWORD: "1337"
DATABASE_ENABLED: "true"
DATABASE_HOST: "mempool-db"
DATABASE_DATABASE: "mempool"
DATABASE_USERNAME: "mempool"
DATABASE_PASSWORD: "mempool"
STATISTICS_ENABLED: "true"
image: mempool/backend:latest
user: "1000:1000"
restart: on-failure
stop_grace_period: 1m
command: "./wait-for-it.sh mempool-db:3306 --timeout=720 --strict -- ./start.sh"
volumes:
- ./mempool.space/data:/backend/cache
links:
- hansel
- mempool-db
mempool-db:
environment:
MYSQL_DATABASE: "mempool"
MYSQL_USER: "mempool"
MYSQL_PASSWORD: "mempool"
MYSQL_ROOT_PASSWORD: "admin"
image: mariadb:10.5.21
user: "1000:1000"
restart: on-failure
stop_grace_period: 1m
volumes:
- ./mempool.space/mysql/data:/var/lib/mysql