specify image version and CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE

Signed-off-by: wuqiaomin <wuqiaomin2@huawei.com>
This commit is contained in:
wuqiaomin 2021-04-19 15:11:15 +08:00
parent 5b8c4390db
commit e7d7e1f2d2
5 changed files with 15 additions and 15 deletions

View file

@ -15,7 +15,7 @@ volumes:
services:
peer-base:
image: hyperledger/fabric-peer:$IMAGE_TAG
image: hyperledger/fabric-peer:2.2.2
environment:
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
- FABRIC_LOGGING_SPEC=INFO
@ -29,7 +29,7 @@ services:
orderer:
container_name: irs-orderer
image: hyperledger/fabric-orderer:$IMAGE_TAG
image: hyperledger/fabric-orderer:2.2.2
environment:
- FABRIC_LOGGING_SPEC=INFO
- ORDERER_GENERAL_LISTENADDRESS=0.0.0.0
@ -132,7 +132,7 @@ services:
cli:
container_name: cli
image: hyperledger/fabric-tools:$IMAGE_TAG
image: hyperledger/fabric-tools:2.2.2
tty: true
stdin_open: true
environment:

View file

@ -8,7 +8,7 @@ version: '2'
services:
ca_org3:
image: hyperledger/fabric-ca:$IMAGE_TAG
image: hyperledger/fabric-ca:2.2.2
environment:
- FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
- FABRIC_CA_SERVER_CA_NAME=ca-org3

View file

@ -15,14 +15,14 @@ services:
peer0.org3.example.com:
container_name: peer0.org3.example.com
image: hyperledger/fabric-peer:$IMAGE_TAG
image: hyperledger/fabric-peer:2.2.2
environment:
#Generic peer variables
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
# the following setting starts chaincode containers on the same
# bridge network as the peers
# https://docs.docker.com/compose/networking/
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=${COMPOSE_PROJECT_NAME}_test
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=fabric_test
- FABRIC_LOGGING_SPEC=INFO
#- FABRIC_LOGGING_SPEC=DEBUG
- CORE_PEER_TLS_ENABLED=true

View file

@ -11,7 +11,7 @@ networks:
services:
ca_org1:
image: hyperledger/fabric-ca:$IMAGE_TAG
image: hyperledger/fabric-ca:2.2.2
environment:
- FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
- FABRIC_CA_SERVER_CA_NAME=ca-org1
@ -27,7 +27,7 @@ services:
- test
ca_org2:
image: hyperledger/fabric-ca:$IMAGE_TAG
image: hyperledger/fabric-ca:2.2.2
environment:
- FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
- FABRIC_CA_SERVER_CA_NAME=ca-org2
@ -43,7 +43,7 @@ services:
- test
ca_orderer:
image: hyperledger/fabric-ca:$IMAGE_TAG
image: hyperledger/fabric-ca:2.2.2
environment:
- FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
- FABRIC_CA_SERVER_CA_NAME=ca-orderer

View file

@ -17,7 +17,7 @@ services:
orderer.example.com:
container_name: orderer.example.com
image: hyperledger/fabric-orderer:$IMAGE_TAG
image: hyperledger/fabric-orderer:2.2.2
environment:
- FABRIC_LOGGING_SPEC=INFO
- ORDERER_GENERAL_LISTENADDRESS=0.0.0.0
@ -50,14 +50,14 @@ services:
peer0.org1.example.com:
container_name: peer0.org1.example.com
image: hyperledger/fabric-peer:$IMAGE_TAG
image: hyperledger/fabric-peer:2.2.2
environment:
#Generic peer variables
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
# the following setting starts chaincode containers on the same
# bridge network as the peers
# https://docs.docker.com/compose/networking/
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=${COMPOSE_PROJECT_NAME}_test
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=fabric_test
- FABRIC_LOGGING_SPEC=INFO
#- FABRIC_LOGGING_SPEC=DEBUG
- CORE_PEER_TLS_ENABLED=true
@ -88,14 +88,14 @@ services:
peer0.org2.example.com:
container_name: peer0.org2.example.com
image: hyperledger/fabric-peer:$IMAGE_TAG
image: hyperledger/fabric-peer:2.2.2
environment:
#Generic peer variables
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
# the following setting starts chaincode containers on the same
# bridge network as the peers
# https://docs.docker.com/compose/networking/
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=${COMPOSE_PROJECT_NAME}_test
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=fabric_test
- FABRIC_LOGGING_SPEC=INFO
#- FABRIC_LOGGING_SPEC=DEBUG
- CORE_PEER_TLS_ENABLED=true
@ -126,7 +126,7 @@ services:
cli:
container_name: cli
image: hyperledger/fabric-tools:$IMAGE_TAG
image: hyperledger/fabric-tools:2.2.2
tty: true
stdin_open: true
environment: