forked from HyperledgerHandsOn/trade-network
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-e2e.yaml
135 lines (124 loc) · 5.11 KB
/
docker-compose-e2e.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
123
124
125
126
127
128
129
130
131
132
133
134
135
#
# SPDX-License-Identifier: Apache-2.0
#
version: '2'
volumes:
orderer.trade.com:
peer0.exporterorg.trade.com:
peer0.importerorg.trade.com:
peer0.carrierorg.trade.com:
peer0.regulatororg.trade.com:
ca.exporterorg.trade.com:
ca.importerorg.trade.com:
ca.carrierorg.trade.com:
ca.regulatororg.trade.com:
networks:
trade:
services:
exporter-ca:
image: hyperledger/fabric-ca:$CA_IMAGE_TAG
platform: $PLATFORM
environment:
- FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
- FABRIC_CA_SERVER_CA_NAME=ca-exporterorg
- FABRIC_CA_SERVER_TLS_ENABLED=true
- FABRIC_CA_SERVER_TLS_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.exporterorg.trade.com-cert.pem
- FABRIC_CA_SERVER_TLS_KEYFILE=/etc/hyperledger/fabric-ca-server-config/priv_sk
ports:
- "7054:7054"
command: sh -c 'fabric-ca-server start --ca.certfile /etc/hyperledger/fabric-ca-server-config/ca.exporterorg.trade.com-cert.pem --ca.keyfile /etc/hyperledger/fabric-ca-server-config/priv_sk -b admin:adminpw -d'
volumes:
- ./crypto-config/peerOrganizations/exporterorg.trade.com/ca/:/etc/hyperledger/fabric-ca-server-config
- ca.exporterorg.trade.com:/etc/hyperledger/fabric-ca-server
container_name: ca.exporterorg.trade.com
networks:
- trade
importer-ca:
image: hyperledger/fabric-ca:$CA_IMAGE_TAG
platform: $PLATFORM
environment:
- FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
- FABRIC_CA_SERVER_CA_NAME=ca-importerorg
- FABRIC_CA_SERVER_TLS_ENABLED=true
- FABRIC_CA_SERVER_TLS_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.importerorg.trade.com-cert.pem
- FABRIC_CA_SERVER_TLS_KEYFILE=/etc/hyperledger/fabric-ca-server-config/priv_sk
ports:
- "8054:8054"
command: sh -c 'fabric-ca-server start --port 8054 --ca.certfile /etc/hyperledger/fabric-ca-server-config/ca.importerorg.trade.com-cert.pem --ca.keyfile /etc/hyperledger/fabric-ca-server-config/priv_sk -b admin:adminpw -d'
volumes:
- ./crypto-config/peerOrganizations/importerorg.trade.com/ca/:/etc/hyperledger/fabric-ca-server-config
- ca.importerorg.trade.com:/etc/hyperledger/fabric-ca-server
container_name: ca.importerorg.trade.com
networks:
- trade
carrier-ca:
image: hyperledger/fabric-ca:$CA_IMAGE_TAG
platform: $PLATFORM
environment:
- FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
- FABRIC_CA_SERVER_CA_NAME=ca-carrierorg
- FABRIC_CA_SERVER_TLS_ENABLED=true
- FABRIC_CA_SERVER_TLS_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.carrierorg.trade.com-cert.pem
- FABRIC_CA_SERVER_TLS_KEYFILE=/etc/hyperledger/fabric-ca-server-config/priv_sk
ports:
- "9054:9054"
command: sh -c 'fabric-ca-server start --port 9054 --ca.certfile /etc/hyperledger/fabric-ca-server-config/ca.carrierorg.trade.com-cert.pem --ca.keyfile /etc/hyperledger/fabric-ca-server-config/priv_sk -b admin:adminpw -d'
volumes:
- ./crypto-config/peerOrganizations/carrierorg.trade.com/ca/:/etc/hyperledger/fabric-ca-server-config
- ca.carrierorg.trade.com:/etc/hyperledger/fabric-ca-server
container_name: ca.carrierorg.trade.com
networks:
- trade
regulator-ca:
image: hyperledger/fabric-ca:$CA_IMAGE_TAG
platform: $PLATFORM
environment:
- FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
- FABRIC_CA_SERVER_CA_NAME=ca-regulatororg
- FABRIC_CA_SERVER_TLS_ENABLED=true
- FABRIC_CA_SERVER_TLS_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.regulatororg.trade.com-cert.pem
- FABRIC_CA_SERVER_TLS_KEYFILE=/etc/hyperledger/fabric-ca-server-config/priv_sk
ports:
- "10054:10054"
command: sh -c 'fabric-ca-server start --port 10054 --ca.certfile /etc/hyperledger/fabric-ca-server-config/ca.regulatororg.trade.com-cert.pem --ca.keyfile /etc/hyperledger/fabric-ca-server-config/priv_sk -b admin:adminpw -d'
volumes:
- ./crypto-config/peerOrganizations/regulatororg.trade.com/ca/:/etc/hyperledger/fabric-ca-server-config
- ca.regulatororg.trade.com:/etc/hyperledger/fabric-ca-server
container_name: ca.regulatororg.trade.com
networks:
- trade
orderer.trade.com:
extends:
file: base/docker-compose-base.yaml
service: orderer.trade.com
container_name: orderer.trade.com
networks:
- trade
peer0.exporterorg.trade.com:
container_name: peer0.exporterorg.trade.com
extends:
file: base/docker-compose-base.yaml
service: peer0.exporterorg.trade.com
networks:
- trade
peer0.importerorg.trade.com:
container_name: peer0.importerorg.trade.com
extends:
file: base/docker-compose-base.yaml
service: peer0.importerorg.trade.com
networks:
- trade
peer0.carrierorg.trade.com:
container_name: peer0.carrierorg.trade.com
extends:
file: base/docker-compose-base.yaml
service: peer0.carrierorg.trade.com
networks:
- trade
peer0.regulatororg.trade.com:
container_name: peer0.regulatororg.trade.com
extends:
file: base/docker-compose-base.yaml
service: peer0.regulatororg.trade.com
networks:
- trade