docker-compose-ca.yaml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. version: '2'
  2. services:
  3. ca0:
  4. image: hyperledger/fabric-ca
  5. environment:
  6. - FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
  7. ports:
  8. - "7054:7054"
  9. command: sh -c 'fabric-ca-server start --ca.certfile /etc/hyperledger/fabric-ca-server-config/peerOrg1-cert.pem --ca.keyfile /etc/hyperledger/fabric-ca-server-config/d8a5b3cac1b821f6e4b487ceaf1fd239cdcfc310894150908b90f05e9179556a_sk -b admin:adminpw' -d
  10. volumes:
  11. - ./channel/crypto-config/peerOrganizations/peerOrg1/ca/:/etc/hyperledger/fabric-ca-server-config
  12. container_name: ca_peerOrg1
  13. ca1:
  14. image: hyperledger/fabric-ca
  15. environment:
  16. - FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
  17. ports:
  18. - "8054:7054"
  19. command: sh -c 'fabric-ca-server start --ca.certfile /etc/hyperledger/fabric-ca-server-config/peerOrg2-cert.pem --ca.keyfile /etc/hyperledger/fabric-ca-server-config/96bdb57f4efbdcf201a269899eb47e2a73fbb728ae14d47d0d5afb75ddea71de_sk -b admin:adminpw' -d
  20. volumes:
  21. - ./channel/crypto-config/peerOrganizations/peerOrg2/ca/:/etc/hyperledger/fabric-ca-server-config
  22. container_name: ca_peerOrg2
  23. couchdb:
  24. container_name: couchdb
  25. #image: couchdb
  26. image: hyperledger/fabric-couchdb
  27. ports:
  28. - 5984:5984
  29. environment:
  30. COUCHDB_USER: admin
  31. COUCHDB_PASSWORD: password
  32. DB_URL: http://localhost:5984/member_db