-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpeer1-o1-docker-compose.yaml
65 lines (62 loc) · 2.6 KB
/
peer1-o1-docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
version: '2'
networks:
fabric-host2:
services:
peer1-org1:
container_name: peer1-org1.inuit.local
image: hyperledger/fabric-peer
environment:
- CORE_PEER_ID=peer1-org1.inuit.local
- CORE_PEER_ADDRESS=peer1-org1.inuit.local:7051
- CORE_PEER_LOCALMSPID=org1MSP
- CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/org1/peer1/msp
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=fabric-proj_fabric-host2 # Starts chaincode containers on the same bridge network as peer
- CORE_LEDGER_STATE_STATEDATABASE=CouchDB
- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdbp1o1:5984
- CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME=peer1-org1
- CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD=p1o1cdbpw
- FABRIC_LOGGING_SPEC=debug
- CORE_PEER_TLS_ENABLED=true
- CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/org1/peer1/tls-msp/signcerts/cert.pem
- CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/org1/peer1/tls-msp/keystore/p1o1-tls-key.pem
- CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/org1/peer1/tls-msp/tlscacerts/tls-ca-tls-inuit-local-7052.pem
- OORE_PEER_GOSSIP_USELEADERELECTION=true
- CORE_PEER_GOSSIP_ORGLEADER=false
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer1-org1.inuit.local:7051
- CORE_PEER_GOSSIP_SKIPHANDSHAKE=true
- GODEBUG=netdns=go
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/org1/peer1
volumes:
- /var/run:/host/var/run
- ~/hyperledger/org1/peer1:/etc/hyperledger/org1/peer1
- ~/hyperledger/misc:/etc/hyperledger/misc
depends_on:
- couchdbp1o1
extra_hosts:
- "ca-tls.inuit.local:192.168.176.101"
- "rca-org0.inuit.local:192.168.176.101"
- "rca-org1.inuit.local:192.168.176.101"
- "peer2-org1.inuit.local:192.168.176.104"
- "peer2-org2.inuit.local:192.168.176.104"
- "ord2-org1.inuit.local:192.168.176.104"
- "cli-org0.inuit.local:192.168.176.104"
- "peer1-org2.inuit.local:192.168.176.105"
- "rca-org2.inuit.local:192.168.176.105"
- "ord1-org2.inuit.local:192.168.176.105"
- "cli-org2.inuit.local:192.168.176.105"
networks:
- fabric-host2
ports:
- 7051:7051
- 7053:7053
couchdbp1o1:
container_name: couchdbp1o1
image: hyperledger/fabric-couchdb
environment:
- COUCHDB_USER=peer1-org1
- COUCHDB_PASSWORD=p1o1cdbpw
ports:
- "5984:5984"
networks:
- fabric-host2