Launching a sample trade network
To launch the sample trade network, all we need to do is start the network using the docker-compose
command, as follows:
$ docker-compose -f docker-compose-e2e.yaml -f docker-compose-couchdb.yaml up
You can run this as a background process and redirect the standard output to a log file if you so choose. Otherwise, you will see the various containers starting up and logs from all of them displayed on the console.
To run the basic network using the preceding command and to develop applications in later chapters, ensuring cross-connectivity between services running in various containers is crucial. For this, you may need to map the various container names to the localhost IP address in your host machine's HOSTS
file. For example, on a Linux machine, you can add the following entries to /etc/hosts
:
127.0.0.1 orderer.trade.com
127.0.0.1 peer0.exporterorg.trade.com
127.0.0.1 peer0.importerorg.trade.com
127...