This Repository utilizes fabric-samples/basic-network
- export fabric-samples
bin
directory to path
export PATH= ~/fabric-samples/bin:$PATH
-
Run
$ ./generate.sh
to generate crypto-matirials and genesis block -
Modifying ca Container keyfile and peer2 IP address in
docker-compose.yml
- FABRIC_CA_SERVER_CA_KEYFILE=/etc/hyperledger/fabric-ca-server-config/<New KeyFile> #can be found in crypto-config/peerOrganizations/org1.example.com/ca/ directory
extra_hosts:
- "peer1.org1.example.com:<Second machine IP address>"
-
Start Network with
./start.sh
-
Copy
crypto-config
directory to second machine's projecthost2/
sub-directory -
Modify
docker-compose-peer2.yml
fileextra-hosts
section with first host IP Address -
Start network(peer2) with
./start-peer2.sh