mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
Update the Raft ordering nodes to use the same ports inside the Docker network as they are mapped to outside of the Docker network (7050, 8050, 9050, 10050, 11050). This enables applications to work using service discovery, whether those applications are running inside or outside the Docker network. Signed-off-by: Simon Stone <sstone1@uk.ibm.com> Change-Id: I40b24653d76b6e60c73b754cd7e1544c333e0021
85 lines
2.8 KiB
YAML
85 lines
2.8 KiB
YAML
# Copyright IBM Corp. All Rights Reserved.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
version: '2'
|
|
|
|
volumes:
|
|
orderer2.example.com:
|
|
orderer3.example.com:
|
|
orderer4.example.com:
|
|
orderer5.example.com:
|
|
|
|
networks:
|
|
byfn:
|
|
|
|
services:
|
|
|
|
orderer2.example.com:
|
|
extends:
|
|
file: base/peer-base.yaml
|
|
service: orderer-base
|
|
environment:
|
|
- ORDERER_GENERAL_LISTENPORT=8050
|
|
container_name: orderer2.example.com
|
|
networks:
|
|
- byfn
|
|
volumes:
|
|
- ./channel-artifacts/genesis.block:/var/hyperledger/orderer/orderer.genesis.block
|
|
- ./crypto-config/ordererOrganizations/example.com/orderers/orderer2.example.com/msp:/var/hyperledger/orderer/msp
|
|
- ./crypto-config/ordererOrganizations/example.com/orderers/orderer2.example.com/tls/:/var/hyperledger/orderer/tls
|
|
- orderer2.example.com:/var/hyperledger/production/orderer
|
|
ports:
|
|
- 8050:8050
|
|
|
|
orderer3.example.com:
|
|
extends:
|
|
file: base/peer-base.yaml
|
|
service: orderer-base
|
|
environment:
|
|
- ORDERER_GENERAL_LISTENPORT=9050
|
|
container_name: orderer3.example.com
|
|
networks:
|
|
- byfn
|
|
volumes:
|
|
- ./channel-artifacts/genesis.block:/var/hyperledger/orderer/orderer.genesis.block
|
|
- ./crypto-config/ordererOrganizations/example.com/orderers/orderer3.example.com/msp:/var/hyperledger/orderer/msp
|
|
- ./crypto-config/ordererOrganizations/example.com/orderers/orderer3.example.com/tls/:/var/hyperledger/orderer/tls
|
|
- orderer3.example.com:/var/hyperledger/production/orderer
|
|
ports:
|
|
- 9050:9050
|
|
|
|
orderer4.example.com:
|
|
extends:
|
|
file: base/peer-base.yaml
|
|
service: orderer-base
|
|
environment:
|
|
- ORDERER_GENERAL_LISTENPORT=10050
|
|
container_name: orderer4.example.com
|
|
networks:
|
|
- byfn
|
|
volumes:
|
|
- ./channel-artifacts/genesis.block:/var/hyperledger/orderer/orderer.genesis.block
|
|
- ./crypto-config/ordererOrganizations/example.com/orderers/orderer4.example.com/msp:/var/hyperledger/orderer/msp
|
|
- ./crypto-config/ordererOrganizations/example.com/orderers/orderer4.example.com/tls/:/var/hyperledger/orderer/tls
|
|
- orderer4.example.com:/var/hyperledger/production/orderer
|
|
ports:
|
|
- 10050:10050
|
|
|
|
orderer5.example.com:
|
|
extends:
|
|
file: base/peer-base.yaml
|
|
service: orderer-base
|
|
environment:
|
|
- ORDERER_GENERAL_LISTENPORT=11050
|
|
container_name: orderer5.example.com
|
|
networks:
|
|
- byfn
|
|
volumes:
|
|
- ./channel-artifacts/genesis.block:/var/hyperledger/orderer/orderer.genesis.block
|
|
- ./crypto-config/ordererOrganizations/example.com/orderers/orderer5.example.com/msp:/var/hyperledger/orderer/msp
|
|
- ./crypto-config/ordererOrganizations/example.com/orderers/orderer5.example.com/tls/:/var/hyperledger/orderer/tls
|
|
- orderer5.example.com:/var/hyperledger/production/orderer
|
|
ports:
|
|
- 11050:11050
|