docker部署quorum cakeshop集成開發環境

環境

os: centos7.6
docker-ce:19.03.5

啓動容器

創建數據目錄

mkdir /root/cakeshop-data

後臺啓動

docker run --name cakeshop -d -p 8080:8080 -v /root/cakeshop-data:/opt/cakeshop/data \
    -v $HOME/.ethash:/opt/cakeshop/.ethash \
    quorumengineering/cakeshop

配置文件:/root/cakeshop-data/local/application.properties

# Toggle managed mode: true = managed
geth.auto.start=true
geth.auto.stop=true

# RPC URL to connect to geth on [managed or unmanaged]
#
# In managed mode, the port is passed to --rpcport. --rpcaddr defaults to
# '127.0.0.1' but can be overridden via geth.params.extra, below.
#
# In unmanaged mode, simply uses this URL for issuing RPC calls.
geth.url=http://localhost:8102

# Sets the p2p node port (--port) [managed only]
geth.node.port=30303

# Network identifier (--networkid) [managed only]
geth.networkid=1006

# Data directory path (--datadir) [managed only]
#
# When set to the default value of "/.ethereum", will be rewritten to a local
# path at `data/<env>/ethereum`
geth.datadir=/.ethereum

# List of RPC APIs to enable [managed only]
#
# Only modify if you know what you are doing.
#
# NOTE: If running in `unmanaged` mode, make sure your geth is configured
#       to enable at least these APIs.
geth.rpcapi.list=admin,db,eth,debug,miner,net,raft,shh,txpool,personal,web3

# geth log verbosity (--verbosity) [managed or unmanaged]
#
# Higher is more verbose. Can be modified at runtime without restart via API.
geth.verbosity=

# Custom node name (--identity) [managed only]
geth.identity=

# Enable Mining (--mine) [managed or unmanaged]
#
# Can be modified at runtime without restart via API. Only applies to vanilla
# geth.
#
# When using Raft-based consensus with quorum, the mining value doesn't have any affect.
geth.mining=true

# Enable CORS for geth RPC endpoint [managed only]
geth.cors.enabled=false
geth.cors.url=

# Extra geth params [managed only]
geth.params.extra=

dashboard

瀏覽器打開:http://yourip:8080
在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章