1 Star 0 Fork 9

mygitcodehost / dockerd-blockscout

forked from coco / dockerd-blockscout 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

dockerd-blockscout

使用 Docker 镜像快速搭建 BlockScout 以太坊区块浏览器服务。基础镜像 pygdev/blockscout 使用 BlockScout 最新 master 分支进行自动编译。

准备工作

  1. 安装 docker 以及 docker-compose 容器编排工具
  2. 自建一个 geth 全节点,需要开放 httpws 接口,并且允许 net,debug,eth,web3,txpool 等模块。示例:
    geth --syncmode full --gcmode archive --http --http.vhosts='*' --http.addr '0.0.0.0' --http.port 8545 --http.api 'net,debug,eth,web3,txpool' --http.corsdomain '*' --ws --ws.addr '0.0.0.0' --ws.port 8546 --ws.api 'net,debug,eth,web3,txpool' --ws.origins '*'

修改配置

首先将 config.env.example 文件重命名为 config.env,然后根据自己的情况修改 ETHEREUM_JSONRPC_HTTP_URLETHEREUM_JSONRPC_WS_URL。也可以添加 BlockScout 支持的环境变量

初始数据库

首先启动 PostgreSQL 服务器并后台运行。

docker volume create postgres-data-volume
docker-compose up -d postgres

然后创建 BlockScount 数据库并自动创建所有表,此命令只需要执行一次,初始化数据库后无需再执行。

docker-compose up migrate

启动BlockScount

docker-compose up -d blockscout

执行完成之后浏览器访问 http://localhost:4000 进行查看。

参考文档

How can I customize the coin symbol?

MIT License Copyright (c) 2021 coco Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

使用Docker快速搭建BlockScout以太坊区块浏览器服务 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/mygitcodehost/dockerd-blockscout.git
git@gitee.com:mygitcodehost/dockerd-blockscout.git
mygitcodehost
dockerd-blockscout
dockerd-blockscout
master

搜索帮助