Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- docker network create iroha-network
- docker run --name some-postgres \
- -e POSTGRES_USER=postgres \
- -e POSTGRES_PASSWORD=1234 \
- -p 5432:5432 \
- --network=iroha-network \
- -d postgres:9.5
- sudo docker volume create blockstore
- docker run --name iroha \
- # External port
- -p 50051:50051 \
- # Folder with configuration files
- -v ~/Developer/iroha/example:/opt/iroha_data \
- # Blockstore volume
- -v blockstore:/tmp/block_store \
- # Postgres settings
- -e POSTGRES_HOST='some-postgres' \
- -e POSTGRES_PORT='5432' \
- -e POSTGRES_PASSWORD='1234' \
- -e POSTGRES_USER='postgres' \
- # Node keypair name
- -e KEY='node0' \
- # Docker network name
- --network=iroha-network \
- hyperledger/iroha:latest
- irohad --config example/config.sample --genesis_block example/genesis.block --keypair_name example/node0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement