2
0

docker-compose-ca.yaml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. version: '2'
  2. services:
  3. ca0:
  4. image: hyperledger/fabric-ca:x86_64-1.0.5
  5. environment:
  6. - FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
  7. - FABRIC_CA_SERVER_CA_NAME=ca-org1
  8. - FABRIC_CA_SERVER_CA_CERTFILE=/etc/hyperledger/fabric-ca-server-config/org1.example.com-cert.pem
  9. - FABRIC_CA_SERVER_CA_KEYFILE=/etc/hyperledger/fabric-ca-server-config/a22daf356b2aab5792ea53e35f66fccef1d7f1aa2b3a2b92dbfbf96a448ea26a_sk
  10. - FABRIC_CA_SERVER_TLS_ENABLED=true
  11. - FABRIC_CA_SERVER_TLS_CERTFILE=/etc/hyperledger/fabric-ca-server-config/org1.example.com-cert.pem
  12. - FABRIC_CA_SERVER_TLS_KEYFILE=/etc/hyperledger/fabric-ca-server-config/a22daf356b2aab5792ea53e35f66fccef1d7f1aa2b3a2b92dbfbf96a448ea26a_sk
  13. ports:
  14. - "7054:7054"
  15. command: sh -c 'fabric-ca-server start -b admin:adminpw -d'
  16. volumes:
  17. - ./channel/crypto-config/peerOrganizations/org1.example.com/ca/:/etc/hyperledger/fabric-ca-server-config
  18. container_name: ca_peerOrg1
  19. ca1:
  20. image: hyperledger/fabric-ca:x86_64-1.0.5
  21. environment:
  22. - FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
  23. - FABRIC_CA_SERVER_CA_NAME=ca-org2
  24. - FABRIC_CA_SERVER_CA_CERTFILE=/etc/hyperledger/fabric-ca-server-config/org2.example.com-cert.pem
  25. - FABRIC_CA_SERVER_CA_KEYFILE=/etc/hyperledger/fabric-ca-server-config/464d550fe9bf9e7d8976cdf59d1a5d472598f54c058c3546317c5c5fb0ddfd6e_sk
  26. - FABRIC_CA_SERVER_TLS_ENABLED=true
  27. - FABRIC_CA_SERVER_TLS_CERTFILE=/etc/hyperledger/fabric-ca-server-config/org2.example.com-cert.pem
  28. - FABRIC_CA_SERVER_TLS_KEYFILE=/etc/hyperledger/fabric-ca-server-config/464d550fe9bf9e7d8976cdf59d1a5d472598f54c058c3546317c5c5fb0ddfd6e_sk
  29. ports:
  30. - "8054:7054"
  31. command: sh -c 'fabric-ca-server start -b admin:adminpw -d'
  32. volumes:
  33. - ./channel/crypto-config/peerOrganizations/org2.example.com/ca/:/etc/hyperledger/fabric-ca-server-config
  34. container_name: ca_peerOrg2
  35. couchdb:
  36. container_name: couchdbca
  37. #image: couchdb
  38. image: hyperledger/fabric-couchdb:x86_64-1.0.5
  39. ports:
  40. - 5984:5984
  41. volumes:
  42. - /var/hyperledger/couchdbca:/opt/couchdb/data
  43. environment:
  44. COUCHDB_USER: admin
  45. COUCHDB_PASSWORD: password
  46. DB_URL: http://localhost:5984/member_db