docker-compose运行ironfish
第一步,初始化用户和节点
docker run --rm -it --network host --volume $HOME/.ironfish:/root/.ironfish ghcr.io/iron-fish/ironfish:latest config:set blockGraffiti "planter"
第二步,将下方的配置复制到目录的docker-compose.yml中
version: "3"
services:
ironfish:
image: ghcr.io/iron-fish/ironfish:latest
network_mode: host
container_name: ironfish
volumes:
- ${HOME}/.ironfish:/root/.ironfish
miner:
image: ghcr.io/iron-fish/ironfish:latest
network_mode: host
container_name: miner
volumes:
- ${HOME}/.ironfish:/root/.ironfish
entrypoint: ["./bin/run", "miners:start", "--threads", "-1"]
depends_on:
- ironfish
第三步,更新镜像及启动
docker-compose pull && docker-compose up -d
第四步,查看状态
docker exec -it ironfish ./bin/run status -f
查看日志 docker-compose logs -f
重启docker docker-compose restart
curl -fsSL https://gitee.com/simon4546/ethlistener/raw/master/ironfish_install.sh|sudo bash