-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
176 lines (161 loc) · 4.87 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
version: '3.9'
services:
bitcoind:
image: ruimarinho/bitcoin-core:23
volumes:
- ./bitcoind_data:/bitcoind_data
command:
# user=mempool password=mempool
- -rpcauth=mempool:566ace4b8835ffc2b6afe62bc9572f46$$71289034ea88f6a9e78af51c5b2f2501a2f3c3b47e9cdcfca773353d61996734
- -printtoconsole=1
- -regtest=1
- -server=1
- -rest=1
- -rpcallowip=0.0.0.0/0
- -rpcallowip=172.16/12
- -txindex=1
- -rpcbind=0.0.0.0:18443
- -rpcport=18443
- -port=18444
- -datadir=/bitcoind_data
ports:
- '18443:18443' # rpc port
- '18444:18444' # p2p port
bitcoin-init:
# Just mines 140 blocks once bitcoind service is up.
image: appropriate/curl
depends_on:
- bitcoind
volumes:
- ./bitcoin-init.sh:/bitcoin-init.sh
command: /bin/sh /bitcoin-init.sh
mempool-web:
image: mempool/frontend:v2.5.0
command: "./wait-for mempool-db:3310 --timeout=720 -- nginx -g 'daemon off;'"
environment:
FRONTEND_HTTP_PORT: 8080
BACKEND_MAINNET_HTTP_HOST: mempool-api
# new stuff below
TESTNET_ENABLED: false
SIGNET_ENABLED: false
LIQUID_ENABLED: false
LIQUID_TESTNET_ENABLED: false
BISQ_ENABLED: false
BISQ_SEPARATE_BACKEND: false
ITEMS_PER_PAGE: 10
KEEP_BLOCKS_AMOUNT: 8
NGINX_PROTOCOL: http
NGINX_HOSTNAME: mempool-api
NGINX_PORT: 80
BLOCK_WEIGHT_UNITS: 4000000
MEMPOOL_BLOCKS_AMOUNT: 8
BASE_MODULE: mempool
MEMPOOL_WEBSITE_URL: https://mempool.space
LIQUID_WEBSITE_URL: https://liquid.network
BISQ_WEBSITE_URL: https://bisq.markets
MINING_DASHBOARD: false
AUDIT: false
MAINNET_BLOCK_AUDIT_START_HEIGHT: 0
TESTNET_BLOCK_AUDIT_START_HEIGHT: 0
SIGNET_BLOCK_AUDIT_START_HEIGHT: 0
LIGHTNING: false
FULL_RBF_ENABLED: false
HISTORICAL_PRICE: false
restart: on-failure
ports:
- 1234:8080
mempool-api:
image: mempool/backend:v2.5.0
command: "./wait-for-it.sh mempool-db:3310 --timeout=720 --strict -- ./start.sh"
restart: on-failure
environment:
MEMPOOL_NETWORK: mainnet
MEMPOOL_BACKEND: electrum
MEMPOOL_ENABLED: true
MEMPOOL_HTTP_PORT: 8999
MEMPOOL_SPAWN_CLUSTER_PROCS: 0
MEMPOOL_API_URL_PREFIX: /api/v1/
MEMPOOL_POLL_RATE_MS: 2000
MEMPOOL_CACHE_DIR: ./cache
MEMPOOL_CLEAR_PROTECTION_MINUTES: 20
MEMPOOL_RECOMMENDED_FEE_PERCENTILE: 50
MEMPOOL_BLOCK_WEIGHT_UNITS: 4000000
MEMPOOL_INITIAL_BLOCKS_AMOUNT: 8
MEMPOOL_MEMPOOL_BLOCKS_AMOUNT: 8
MEMPOOL_INDEXING_BLOCKS_AMOUNT: 11000
MEMPOOL_BLOCKS_SUMMARIES_INDEXING: false
MEMPOOL_USE_SECOND_NODE_FOR_MINFEE: false
MEMPOOL_EXTERNAL_ASSETS: ""
MEMPOOL_EXTERNAL_MAX_RETRY: 1
MEMPOOL_EXTERNAL_RETRY_INTERVAL: 0
MEMPOOL_USER_AGENT: mempool
MEMPOOL_STDOUT_LOG_MIN_PRIORITY: debug
MEMPOOL_AUTOMATIC_BLOCK_REINDEXING: false
MEMPOOL_POOLS_JSON_URL: https://raw.githubusercontent.com/mempool/mining-pools/master/pools-v2.json
MEMPOOL_POOLS_JSON_TREE_URL: https://api.github.com/repos/mempool/mining-pools/git/trees/master
MEMPOOL_AUDIT: false
MEMPOOL_ADVANCED_GBT_AUDIT: false
MEMPOOL_ADVANCED_GBT_MEMPOOL: false
MEMPOOL_CPFP_INDEXING: false
MEMPOOL_DISK_CACHE_BLOCK_INTERVAL: 6
CORE_RPC_HOST: bitcoind
CORE_RPC_PORT: 18443
CORE_RPC_USERNAME: mempool
CORE_RPC_PASSWORD: mempool
CORE_RPC_TIMEOUT: 60000
ELECTRUM_HOST: mempool-electrs
ELECTRUM_PORT: 60001
ELECTRUM_TLS_ENABLED: false
DATABASE_ENABLED: true
DATABASE_HOST: mempool-db
DATABASE_PORT: 3310
DATABASE_DATABASE: mempool
DATABASE_USERNAME: mempool
DATABASE_PASSWORD: mempool
DATABASE_TIMEOUT: 180000
mempool-db:
image: mariadb:10.5.8
environment:
MYSQL_DATABASE: mempool
MYSQL_USER: mempool
MYSQL_PASSWORD: mempool
MYSQL_ROOT_PASSWORD: admin
MYSQL_TCP_PORT: 3310
restart: on-failure
user: "1000:1000"
volumes:
- ./mysql_data:/var/lib/mysql
expose:
- '3310'
- '13310'
ports:
- '13310:3310'
- '3310:3310'
mempool-electrs:
image: electrs:0.9.14
environment:
ELECTRS_DAEMON_RPC_ADDR: bitcoind:18443
ELECTRS_DAEMON_P2P_ADDR: bitcoind:18444
ELECTRS_ELECTRUM_RPC_ADDR: mempool-electrs:60001
ELECTRS_MONITORING_ADDR: mempool-electrs:25225
ELECTRS_NETWORK: regtest
ELECTRS_DB_DIR: /data
ELECTRS_LOG_FILTERS: INFO
command:
electrs --conf /data/electrs.toml
volumes:
- ./electrs.toml:/data/electrs.toml
- ./electrs_data:/data
restart: on-failure
depends_on:
- bitcoind
expose:
- '24224'
- '60001'
ports:
- '25225:25225'
- '60001:60001'
volumes:
bitcoind_data:
electrs_data:
networks: {}