past_binner

docker-compose-e2e-template.yaml

May 8th, 2018
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.90 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. orderer.example.com:
  10. peer0.org1.example.com:
  11. peer1.org1.example.com:
  12. peer0.org2.example.com:
  13. peer1.org2.example.com:
  14.  
  15. networks:
  16. byfn:
  17. services:
  18. ca0:
  19. image: hyperledger/fabric-ca:$IMAGE_TAG
  20. environment:
  21. - FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
  22. - FABRIC_CA_SERVER_CA_NAME=ca-org1
  23. - FABRIC_CA_SERVER_TLS_ENABLED=true
  24. - FABRIC_CA_SERVER_TLS_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.org1.example.com-cert.pem
  25. - FABRIC_CA_SERVER_TLS_KEYFILE=/etc/hyperledger/fabric-ca-server-config/CA1_PRIVATE_KEY
  26. ports:
  27. - "7054:7054"
  28. command: sh -c 'fabric-ca-server start --ca.certfile /etc/hyperledger/fabric-ca-server-config/ca.org1.example.com-cert.pem --ca.keyfile /etc/hyperledger/fabric-ca-server-config/CA1_PRIVATE_KEY -b admin:adminpw -d'
  29. volumes:
  30. - ./crypto-config/peerOrganizations/org1.example.com/ca/:/etc/hyperledger/fabric-ca-server-config
  31. container_name: ca_peerOrg1
  32. networks:
  33. - byfn
  34.  
  35. ca1:
  36. image: hyperledger/fabric-ca:$IMAGE_TAG
  37. environment:
  38. - FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
  39. - FABRIC_CA_SERVER_CA_NAME=ca-org2
  40. - FABRIC_CA_SERVER_TLS_ENABLED=true
  41. - FABRIC_CA_SERVER_TLS_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.org2.example.com-cert.pem
  42. - FABRIC_CA_SERVER_TLS_KEYFILE=/etc/hyperledger/fabric-ca-server-config/CA2_PRIVATE_KEY
  43. ports:
  44. - "8054:7054"
  45. command: sh -c 'fabric-ca-server start --ca.certfile /etc/hyperledger/fabric-ca-server-config/ca.org2.example.com-cert.pem --ca.keyfile /etc/hyperledger/fabric-ca-server-config/CA2_PRIVATE_KEY -b admin:adminpw -d'
  46. volumes:
  47. - ./crypto-config/peerOrganizations/org2.example.com/ca/:/etc/hyperledger/fabric-ca-server-config
  48. container_name: ca_peerOrg2
  49. networks:
  50. - byfn
  51.  
  52. orderer.example.com:
  53. extends:
  54. file: base/docker-compose-base.yaml
  55. service: orderer.example.com
  56. container_name: orderer.example.com
  57. networks:
  58. - byfn
  59.  
  60. peer0.org1.example.com:
  61. container_name: peer0.org1.example.com
  62. extends:
  63. file: base/docker-compose-base.yaml
  64. service: peer0.org1.example.com
  65. networks:
  66. - byfn
  67.  
  68. peer1.org1.example.com:
  69. container_name: peer1.org1.example.com
  70. extends:
  71. file: base/docker-compose-base.yaml
  72. service: peer1.org1.example.com
  73. networks:
  74. - byfn
  75.  
  76. peer0.org2.example.com:
  77. container_name: peer0.org2.example.com
  78. extends:
  79. file: base/docker-compose-base.yaml
  80. service: peer0.org2.example.com
  81. networks:
  82. - byfn
  83.  
  84. peer1.org2.example.com:
  85. container_name: peer1.org2.example.com
  86. extends:
  87. file: base/docker-compose-base.yaml
  88. service: peer1.org2.example.com
  89. networks:
  90. - byfn
Add Comment
Please, Sign In to add comment