-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-cli.yaml
122 lines (108 loc) · 4.22 KB
/
docker-compose-cli.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
version: '2'
volumes:
orderer.fp.com:
peer0.org1.fp.com:
peer1.org1.fp.com:
peer2.org1.fp.com:
networks:
basic:
services:
orderer.fp.com:
extends:
file: base/docker-compose-base.yaml
service: orderer.fp.com
container_name: orderer.fp.com
networks:
- basic
peer0.org1.fp.com:
container_name: peer0.org1.fp.com
extends:
file: base/docker-compose-base.yaml
service: peer0.org1.fp.com
networks:
- basic
peer1.org1.fp.com:
container_name: peer1.org1.fp.com
extends:
file: base/docker-compose-base.yaml
service: peer1.org1.fp.com
networks:
- basic
peer2.org1.fp.com:
container_name: peer2.org1.fp.com
extends:
file: base/docker-compose-base.yaml
service: peer2.org1.fp.com
networks:
- basic
# root.fp.com:
# image: hyperledger/fabric-ca:$IMAGE_TAG
# container_name: root.fp.com
# environment:
# - FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-rootserver
# - FABRIC_CA_SERVER_CA_NAME=root.fp.com
# - FABRIC_CA_SERVER_TLS_ENABLED=false
# command: sh -c 'fabric-ca-server start -b admin:adminpw --cfg.affiliations.allowremove --cfg.identities.allowremove'
# # --ca.certfile /etc/hyperledger/fabric-ca-server-config/ca.org1.example.com-cert.pem --ca.keyfile #/etc/hyperledger/fabric-ca-server-config/${PRIVATE_KEY}
# volumes:
# #- ./crypto-config/peerOrganizations/org1.fp.com/ca/:/etc/hyperledger/fabric-ca-rootserver-config
# - ./rootCA:/etc/hyperledger/fabric-ca-rootserver
# ports:
# - "7054:7054"
# networks:
# - basic
# middle1.fp.com:
# image: hyperledger/fabric-ca:$IMAGE_TAG
# container_name: middle1.fp.com
# environment:
# - FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-middleserver
# - FABRIC_CA_SERVER_CA_NAME=middle1.fp.com
# - FABRIC_CA_SERVER_TLS_ENABLED=false
# command: sh -c 'fabric-ca-server start -b admin:adminpw -u http://admin:adminpw@root.fp.com:7054 -p 7055 --cfg.affiliations.allowremove --cfg.identities.allowremove'
# # --ca.certfile /etc/hyperledger/fabric-ca-server-config/ca.org1.example.com-cert.pem --ca.keyfile #/etc/hyperledger/fabric-ca-server-config/${PRIVATE_KEY}
# volumes:
# #- ./crypto-config/peerOrganizations/org1.fp.com/ca/:/etc/hyperledger/fabric-ca-middleserver-config
# - ./middleCA:/etc/hyperledger/fabric-ca-middleserver
# ports:
# - "7055:7055"
# depends_on:
# - root.fp.com
# networks:
# - basic
cli:
container_name: cli
image: hyperledger/fabric-tools:$IMAGE_TAG
tty: true
stdin_open: true
environment:
- GOPATH=/opt/gopath
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
#- CORE_LOGGING_LEVEL=DEBUG
- CORE_LOGGING_LEVEL=INFO
- CORE_PEER_ID=cli
- CORE_PEER_ADDRESS=peer0.org1.fp.com:7051
- CORE_PEER_LOCALMSPID=Org1MSP
- CORE_PEER_TLS_ENABLED=true
- CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.fp.com/peers/peer0.org1.fp.com/tls/server.crt
- CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.fp.com/peers/peer0.org1.fp.com/tls/server.key
- CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.fp.com/peers/peer0.org1.fp.com/tls/ca.crt
- CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.fp.com/users/Admin@org1.fp.com/msp
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer
command: /bin/bash
volumes:
- /var/run/:/host/var/run/
- ./chaincode/:/opt/gopath/src/github.com/chaincode
- ./crypto-config:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/
- ./scripts:/opt/gopath/src/github.com/hyperledger/fabric/peer/scripts/
- ./channel-artifacts:/opt/gopath/src/github.com/hyperledger/fabric/peer/channel-artifacts
depends_on:
- orderer.fp.com
- peer0.org1.fp.com
- peer1.org1.fp.com
- peer2.org1.fp.com
networks:
- basic