Skip to content

Commit 0b471ee

Browse files
committed
fix: Update peer configuration
Signed-off-by: Osama Rabea <159753803+OsamaRab3@users.noreply.github.com>
1 parent 67fb907 commit 0b471ee

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/setup-docker/templates/fabric-docker/docker-compose.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -246,11 +246,13 @@ services:
246246
- CORE_PEER_LOCALMSPID=<%= org.mspName %>
247247
- CORE_PEER_ID=<%= peer.address %>
248248
- CORE_PEER_ADDRESS=<%= peer.fullAddress %>
249-
- CORE_PEER_LISTENADDRESS=<%= peer.fullAddress %>
250-
- CORE_PEER_GOSSIP_ENDPOINT=<%= peer.fullAddress %><% if(peer.isAnchorPeer) { %>
251-
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=<%= peer.fullAddress %><% } %>
249+
- CORE_PEER_LISTENADDRESS=0.0.0.0:<%= peer.port %>
250+
- CORE_PEER_CHAINCODEADDRESS=<%= peer.address %>:<%= peer.port + 1 %>
251+
- CORE_PEER_CHAINCODELISTENADDRESS=0.0.0.0:<%= peer.port + 1 %>
252+
- CORE_PEER_GOSSIP_USELEADERELECTION=true
253+
- CORE_PEER_GOSSIP_ORGLEADER=false
254+
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=<%= peer.fullAddress %>
252255
- CORE_PEER_GOSSIP_BOOTSTRAP=<%- org.bootstrapPeers %>
253-
- CORE_PEER_CHAINCODELISTENADDRESS=<%= peer.address %>:7050
254256
- CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/fabric/peer/msp
255257
- CORE_CHAINCODE_BUILDER=hyperledger/fabric-ccenv:${FABRIC_CCENV_VERSION}
256258
- CORE_CHAINCODE_GOLANG_RUNTIME=hyperledger/fabric-baseos:${FABRIC_BASEOS_VERSION}
@@ -274,6 +276,7 @@ services:
274276
- CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/peer/tls/server.crt
275277
- CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/peer/tls/server.key
276278
- CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/peer/tls/ca.crt
279+
- CORE_PEER_TLS_CLIENTAUTHREQUIRED=false
277280
<%_ } _%>
278281
<%_ if(peer.db.type==="CouchDb") { _%>
279282
# CouchDB
@@ -291,9 +294,7 @@ services:
291294
ports:
292295
- <%= peer.port + 1000 %>:9440
293296
- <%= peer.port %>:<%= peer.port %>
294-
<%_ if(global.peerDevMode) { _%>
295-
- <%= peer.port + 1500 %>:7050
296-
<%_ } _%>
297+
- <%= peer.port + 1 %>:<%= peer.port + 1 %>
297298
<%_ if(peer.db.type==="CouchDb") { _%>
298299
depends_on:
299300
couchdb.<%= peer.name %>.<%= org.domain %>:

0 commit comments

Comments
 (0)