mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
There is a rogue network section which is indented at the top level of the docker-compose-e2e-template.yaml file. This has been reported by users to cause errors when they attempt to tweak the byfn setup. As best as I can tell, this network section is intended to be defined at the top level and appears to have no adverse affect on the byfn. Change-Id: I40b937d1f352af079754a84860bce025ec61594e Signed-off-by: Jason Yellick <jyellick@us.ibm.com>
83 lines
2.7 KiB
YAML
83 lines
2.7 KiB
YAML
# Copyright IBM Corp. All Rights Reserved.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
version: '2'
|
|
|
|
networks:
|
|
byfn:
|
|
services:
|
|
ca0:
|
|
image: hyperledger/fabric-ca
|
|
environment:
|
|
- FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
|
|
- FABRIC_CA_SERVER_CA_NAME=ca-org1
|
|
- FABRIC_CA_SERVER_TLS_ENABLED=true
|
|
- FABRIC_CA_SERVER_TLS_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.org1.example.com-cert.pem
|
|
- FABRIC_CA_SERVER_TLS_KEYFILE=/etc/hyperledger/fabric-ca-server-config/CA1_PRIVATE_KEY
|
|
ports:
|
|
- "7054:7054"
|
|
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'
|
|
volumes:
|
|
- ./crypto-config/peerOrganizations/org1.example.com/ca/:/etc/hyperledger/fabric-ca-server-config
|
|
container_name: ca_peerOrg1
|
|
networks:
|
|
- byfn
|
|
|
|
ca1:
|
|
image: hyperledger/fabric-ca
|
|
environment:
|
|
- FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
|
|
- FABRIC_CA_SERVER_CA_NAME=ca-org2
|
|
- FABRIC_CA_SERVER_TLS_ENABLED=true
|
|
- FABRIC_CA_SERVER_TLS_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.org2.example.com-cert.pem
|
|
- FABRIC_CA_SERVER_TLS_KEYFILE=/etc/hyperledger/fabric-ca-server-config/CA2_PRIVATE_KEY
|
|
ports:
|
|
- "8054:7054"
|
|
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'
|
|
volumes:
|
|
- ./crypto-config/peerOrganizations/org2.example.com/ca/:/etc/hyperledger/fabric-ca-server-config
|
|
container_name: ca_peerOrg2
|
|
networks:
|
|
- byfn
|
|
|
|
orderer.example.com:
|
|
extends:
|
|
file: base/docker-compose-base.yaml
|
|
service: orderer.example.com
|
|
container_name: orderer.example.com
|
|
networks:
|
|
- byfn
|
|
|
|
peer0.org1.example.com:
|
|
container_name: peer0.org1.example.com
|
|
extends:
|
|
file: base/docker-compose-base.yaml
|
|
service: peer0.org1.example.com
|
|
networks:
|
|
- byfn
|
|
|
|
peer1.org1.example.com:
|
|
container_name: peer1.org1.example.com
|
|
extends:
|
|
file: base/docker-compose-base.yaml
|
|
service: peer1.org1.example.com
|
|
networks:
|
|
- byfn
|
|
|
|
peer0.org2.example.com:
|
|
container_name: peer0.org2.example.com
|
|
extends:
|
|
file: base/docker-compose-base.yaml
|
|
service: peer0.org2.example.com
|
|
networks:
|
|
- byfn
|
|
|
|
peer1.org2.example.com:
|
|
container_name: peer1.org2.example.com
|
|
extends:
|
|
file: base/docker-compose-base.yaml
|
|
service: peer1.org2.example.com
|
|
networks:
|
|
- byfn
|