github.com/myafeier/fabric@v1.0.1-0.20170722181825-3a4b1f2bce86/examples/e2e_cli/docker-compose-e2e-template.yaml (about)

     1  # Copyright IBM Corp. All Rights Reserved.
     2  #
     3  # SPDX-License-Identifier: Apache-2.0
     4  #
     5  
     6  version: '2'
     7  
     8  services:
     9    ca0:
    10      image: hyperledger/fabric-ca
    11      environment:
    12        - FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
    13        - FABRIC_CA_SERVER_CA_NAME=ca-org1
    14        - FABRIC_CA_SERVER_TLS_ENABLED=true
    15        - FABRIC_CA_SERVER_TLS_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.org1.example.com-cert.pem
    16        - FABRIC_CA_SERVER_TLS_KEYFILE=/etc/hyperledger/fabric-ca-server-config/CA1_PRIVATE_KEY
    17      ports:
    18        - "7054:7054"
    19      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'
    20      volumes:
    21        - ./crypto-config/peerOrganizations/org1.example.com/ca/:/etc/hyperledger/fabric-ca-server-config
    22      container_name: ca_peerOrg1
    23  
    24    ca1:
    25      image: hyperledger/fabric-ca
    26      environment:
    27        - FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
    28        - FABRIC_CA_SERVER_CA_NAME=ca-org2
    29        - FABRIC_CA_SERVER_TLS_ENABLED=true
    30        - FABRIC_CA_SERVER_TLS_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.org2.example.com-cert.pem
    31        - FABRIC_CA_SERVER_TLS_KEYFILE=/etc/hyperledger/fabric-ca-server-config/CA2_PRIVATE_KEY
    32      ports:
    33        - "8054:7054"
    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/CA2_PRIVATE_KEY -b admin:adminpw -d'
    35      volumes:
    36        - ./crypto-config/peerOrganizations/org2.example.com/ca/:/etc/hyperledger/fabric-ca-server-config
    37      container_name: ca_peerOrg2
    38  
    39    orderer.example.com:
    40      extends:
    41        file:   base/docker-compose-base.yaml
    42        service: orderer.example.com
    43      container_name: orderer.example.com
    44  
    45    peer0.org1.example.com:
    46      container_name: peer0.org1.example.com
    47      extends:
    48        file:  base/docker-compose-base.yaml
    49        service: peer0.org1.example.com
    50  
    51    peer1.org1.example.com:
    52      container_name: peer1.org1.example.com
    53      extends:
    54        file:  base/docker-compose-base.yaml
    55        service: peer1.org1.example.com
    56  
    57    peer0.org2.example.com:
    58      container_name: peer0.org2.example.com
    59      extends:
    60        file:  base/docker-compose-base.yaml
    61        service: peer0.org2.example.com
    62  
    63    peer1.org2.example.com:
    64      container_name: peer1.org2.example.com
    65      extends:
    66        file:  base/docker-compose-base.yaml
    67        service: peer1.org2.example.com