past_binner

docker-compose-org3.yaml

May 8th, 2018
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.50 KB | None | 0 0
  1. # Copyright IBM Corp. All Rights Reserved.
  2. #
  3. # SPDX-License-Identifier: Apache-2.0
  4. #
  5.  
  6. version: '2'
  7.  
  8. volumes:
  9. peer0.org3.example.com:
  10. peer1.org3.example.com:
  11.  
  12. networks:
  13. byfn:
  14.  
  15. services:
  16.  
  17. peer0.org3.example.com:
  18. container_name: peer0.org3.example.com
  19. extends:
  20. file: base/peer-base.yaml
  21. service: peer-base
  22. environment:
  23. - CORE_PEER_ID=peer0.org3.example.com
  24. - CORE_PEER_ADDRESS=peer0.org3.example.com:7051
  25. - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org3.example.com:7051
  26. - CORE_PEER_LOCALMSPID=Org3MSP
  27. volumes:
  28. - /var/run/:/host/var/run/
  29. - ./org3-artifacts/crypto-config/peerOrganizations/org3.example.com/peers/peer0.org3.example.com/msp:/etc/hyperledger/fabric/msp
  30. - ./org3-artifacts/crypto-config/peerOrganizations/org3.example.com/peers/peer0.org3.example.com/tls:/etc/hyperledger/fabric/tls
  31. - peer0.org3.example.com:/var/hyperledger/production
  32. ports:
  33. - 11051:7051
  34. - 11053:7053
  35. networks:
  36. - byfn
  37.  
  38. peer1.org3.example.com:
  39. container_name: peer1.org3.example.com
  40. extends:
  41. file: base/peer-base.yaml
  42. service: peer-base
  43. environment:
  44. - CORE_PEER_ID=peer1.org3.example.com
  45. - CORE_PEER_ADDRESS=peer1.org3.example.com:7051
  46. - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer1.org3.example.com:7051
  47. - CORE_PEER_GOSSIP_BOOTSTRAP=peer0.org3.example.com:7051
  48. - CORE_PEER_LOCALMSPID=Org3MSP
  49. volumes:
  50. - /var/run/:/host/var/run/
  51. - ./org3-artifacts/crypto-config/peerOrganizations/org3.example.com/peers/peer1.org3.example.com/msp:/etc/hyperledger/fabric/msp
  52. - ./org3-artifacts/crypto-config/peerOrganizations/org3.example.com/peers/peer1.org3.example.com/tls:/etc/hyperledger/fabric/tls
  53. - peer1.org3.example.com:/var/hyperledger/production
  54. ports:
  55. - 12051:7051
  56. - 12053:7053
  57. networks:
  58. - byfn
  59.  
  60.  
  61. Org3cli:
  62. container_name: Org3cli
  63. image: hyperledger/fabric-tools:$IMAGE_TAG
  64. tty: true
  65. stdin_open: true
  66. environment:
  67. - GOPATH=/opt/gopath
  68. - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
  69. - CORE_LOGGING_LEVEL=INFO
  70. #- CORE_LOGGING_LEVEL=DEBUG
  71. - CORE_PEER_ID=Org3cli
  72. - CORE_PEER_ADDRESS=peer0.org3.example.com:7051
  73. - CORE_PEER_LOCALMSPID=Org3MSP
  74. - CORE_PEER_TLS_ENABLED=true
  75. - CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org3.example.com/peers/peer0.org3.example.com/tls/server.crt
  76. - CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org3.example.com/peers/peer0.org3.example.com/tls/server.key
  77. - CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org3.example.com/peers/peer0.org3.example.com/tls/ca.crt
  78. - CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org3.example.com/users/[email protected]/msp
  79. working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer
  80. command: /bin/bash
  81. volumes:
  82. - /var/run/:/host/var/run/
  83. - ./../chaincode/:/opt/gopath/src/github.com/chaincode
  84. - ./org3-artifacts/crypto-config:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/
  85. - ./scripts:/opt/gopath/src/github.com/hyperledger/fabric/peer/scripts/
  86. depends_on:
  87. - peer0.org3.example.com
  88. - peer1.org3.example.com
  89. networks:
  90. - byfn
Add Comment
Please, Sign In to add comment