docker-compose-ca.yaml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. version: '2'
  2. services:
  3. ca.org1.example.com: # ca node for org1
  4. image: hyperledger/fabric-ca:x86_64-1.0.5
  5. restart: always
  6. container_name: ca.org1.example.com
  7. hostname: ca.org1.example.com
  8. environment:
  9. - FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
  10. - FABRIC_CA_SERVER_TLS_ENABLED=true
  11. - FABRIC_CA_SERVER_CA_NAME=ca-org1
  12. - FABRIC_CA_SERVER_TLS_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.org1.example.com-cert.pem
  13. - FABRIC_CA_SERVER_TLS_KEYFILE=/etc/hyperledger/fabric-ca-server-config/c843d3f021118963ce5d340e95286e8869bb7bd051454cd4166aa2887a2ad451_sk
  14. ports:
  15. - "7054:7054"
  16. volumes:
  17. - ./solo/crypto-config/peerOrganizations/org1.example.com/ca/:/etc/hyperledger/fabric-ca-server-config
  18. 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/c843d3f021118963ce5d340e95286e8869bb7bd051454cd4166aa2887a2ad451_sk -b admin:adminpw -d'
  19. ca.org2.example.com: # ca node for org2
  20. image: hyperledger/fabric-ca:x86_64-1.0.5
  21. restart: always
  22. container_name: ca.org2.example.com
  23. hostname: ca.org2.example.com
  24. environment:
  25. - FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
  26. - FABRIC_CA_SERVER_TLS_ENABLED=true
  27. - FABRIC_CA_SERVER_CA_NAME=ca-org2
  28. - FABRIC_CA_SERVER_TLS_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.org2.example.com-cert.pem
  29. - FABRIC_CA_SERVER_TLS_KEYFILE=/etc/hyperledger/fabric-ca-server-config/1ee551a8753171c0377366e96a1d7ec01afddb868c9483cc501b6f8ac7ae752f_sk
  30. ports:
  31. - "8054:7054"
  32. volumes:
  33. - ./solo/crypto-config/peerOrganizations/org2.example.com/ca/:/etc/hyperledger/fabric-ca-server-config
  34. 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/1ee551a8753171c0377366e96a1d7ec01afddb868c9483cc501b6f8ac7ae752f_sk -b admin:adminpw -d'