github.com/tw-bc-group/fabric-ca@v2.0.0-alpha+incompatible/docker/examples/client-server-flow/docker-compose.yml (about) 1 # 2 # Copyright IBM Corp. All Rights Reserved. 3 # 4 # SPDX-License-Identifier: Apache-2.0 5 # 6 fabric-ca: 7 image: hyperledger/fabric-ca 8 container_name: fabric-ca 9 ports: 10 - "7054:7054" 11 environment: 12 - CA_CERTIFICATE=${CA_CERTIFICATE} 13 - CA_KEY_CERTIFICATE=${CA_KEY_CERTIFICATE} 14 - FABRIC_CA_CONFIG=${FABRIC_CA_CONFIG} 15 volumes: 16 - /etc/hyperledger/fabric-ca:/var/hyperledger/fabric-ca/config 17 - /.fabric-ca:/var/hyperledger/fabric/.fabric-ca 18 command: sh -c 'sleep 1;fabric-ca server start -ca /.fabric-ca/$CA_CERTIFICATE -ca-key /.fabric-ca/$CA_KEY_CERTIFICATE -config /etc/hyperledger/fabric-ca/$FABRIC_CA_CONFIG -address "0.0.0.0"' 19 20 admin-client: 21 image: hyperledger/fabric-ca 22 container_name: admin-client 23 environment: 24 - CSR_CONFIG=${CSR_CONFIG} 25 volumes: 26 - /etc/hyperledger/fabric-ca:/var/hyperledger/fabric-ca/config 27 - /.fabric-ca:/var/hyperledger/fabric/.fabric-ca 28 command: sh -c "sleep 5;fabric-ca client enroll admin adminpw http://fabric-ca:7054 /etc/hyperledger/fabric-ca/$CSR_CONFIG" 29 links: 30 - fabric-ca 31 32 sdk-client: 33 image: hyperledger/fabric-ca 34 container_name: sdk-client 35 environment: 36 - CSR_CONFIG=${CSR_CONFIG} 37 volumes: 38 - /etc/hyperledger/fabric-ca:/var/hyperledger/fabric-ca/config 39 - /.fabric-ca:/var/hyperledger/fabric/.fabric-ca 40 command: sh -c "sleep 5;fabric-ca client enroll sdk sdkpw http://fabric-ca:7054 /etc/hyperledger/fabric-ca/$CSR_CONFIG" 41 links: 42 - fabric-ca 43 44 bob-client: 45 image: hyperledger/fabric-ca 46 container_name: bob-client 47 environment: 48 - CSR_CONFIG=${CSR_CONFIG} 49 volumes: 50 - /etc/hyperledger/fabric-ca:/var/hyperledger/fabric-ca/config 51 - /.fabric-ca:/var/hyperledger/fabric/.fabric-ca 52 command: sh -c "sleep 5;fabric-ca client enroll bob bobpw http://fabric-ca:7054 /etc/hyperledger/fabric-ca/$CSR_CONFIG" 53 links: 54 - fabric-ca