How can I deploy a hyperledger business network using docker-compose

0 votes

I am trying to deploy a Hyperledger BNA using docker-compose. How can I do it in the cleanest way? version: '2'

networks:
  basic:

services:
  playground:
    container_name: composer-playground
    image: hyperledger/composer-playground
    ports:
        - 8080:8080
    networks:
      - basic
    command: composer-playground

  ca.example.com:
    image: hyperledger/fabric-ca
    ...

  orderer.example.com:
    container_name: orderer.example.com
    image: hyperledger/fabric-orderer
    ...

  peer0.org1.example.com:
    container_name: peer0.org1.example.com
    image: hyperledger/fabric-peer
    ...

  cli:
    container_name: cli
    image: hyperledger/fabric-tools
    ...

This is a docker-compose.yml from This github repisitory I know that I can deploy a network using this tutorial, but as I sad. I want to deploy it using docker-compose. Please help.

Oct 4, 2018 in Blockchain by sabby
• 4,370 points
1,461 views

1 answer to this question.

0 votes

If you want to use Composer, be aware that 'today' Composer supports Fabric 1.1 and you are looking at Fabric 1.2 docs, and Will likely download the 'latest' Fabric 1.2 unless you specifically do something different. (Composer support for Fabric 1.2 is coming shortly. Keep an out out for the Release notes for the latest information.)

There is a Docker container for the Composer CLI which will enable you to deploy your BNA.

There are Composer tutorials on creating and deploying BNAs, but they start with the assumption that the Composer CLI is installed locally, not in a Container so you will need to adapt the approach. The key to connecting Composer to the Fabric is the connection profile, so you will need to understand the addressing and networking aspects of your Docker environment to build the right connection profile.

answered Oct 4, 2018 by Perry
• 17,100 points

Related Questions In Blockchain

+1 vote
1 answer

How can I initiate a transaction on ethereum private network using mobile device?

There is no android wallet to connect ...READ MORE

answered Apr 18, 2018 in Blockchain by Shashank
• 10,400 points
904 views
0 votes
1 answer
+1 vote
0 answers

How can i made a ledger-system using hyperledger.

Jan 12, 2020 in Blockchain by anonymous
• 190 points
812 views
+2 votes
1 answer
0 votes
3 answers
0 votes
1 answer
0 votes
1 answer

How can I deploy a HelloWorld contract on my testrpc network?

The problem lies in the command: truffle migrate Your truffle migrate command ...READ MORE

answered Apr 27, 2018 in Blockchain by Perry
• 17,100 points

edited Aug 10, 2018 by Omkar 2,846 views
+1 vote
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP