纯真比特币的区块链浏览器,基于 bitcore-node 进行定制构建。
littlemo/rbtc-explorer:latest
在使用时应按需为Web服务器进行端口映射,并挂载 bitcore-node.json
配置文件到路径 /app/bitcore/rbtc_node/bitcore-node.json
下(建议进行只读挂载)
{
"network": "livenet",
"port": 80,
"services": [
"bitcoind",
"insight-api",
"insight-ui",
"web"
],
"servicesConfig": {
"insight-ui": {
"routePrefix": "",
"apiPrefix": "api"
},
"insight-api": {
"routePrefix": "api",
"disableRateLimiter": true,
"enableCache": true
},
"bitcoind": {
"connect": [
{
"rpchost": "127.0.0.1", // 替换为相应节点主机的IP地址
"rpcport": 8332, // 替换为相应节点主机的RPC服务端口
"rpcuser": "username", // 替换为相应节点主机的RPC用户名
"rpcpassword": "password", // 替换为相应节点主机的RPC密码
"zmqpubrawtx": "tcp://10.0.0.3:28332", // 替换为相应节点主机的ZMQ服务IP&端口,下同
"zmqpubhashtx": "tcp://10.0.0.3:28332",
"zmqpubrawblock": "tcp://10.0.0.3:28332",
"zmqpubhashblock": "tcp://10.0.0.3:28332"
}
]
}
}
}
$ docker run -d -p 80:80 -v /paht/to/bitcore-node.json:/app/bitcore/rbtc_node/bitcore-node.json --name rbtc-explorer littlemo/rbtc-explorer:latest
version: '2'
services:
explorer:
image: littlemo/rbtc-explorer
container_name: rbtc-explorer
restart: unless-stopped
ports:
- "80:80"
volumes:
# 挂载配置文件
- /paht/to/bitcore-node.json:/app/bitcore/rbtc_node/bitcore-node.json:ro
如果您在使用该镜像时遇到任何问题,请查看镜像源码的 NewEconomicTeam/RoyalBitcoin-Explorer Repo,并在其中提交 Issues 给我们,多谢您的帮助~~