forked from hyperledger/fabric-private-chaincode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
74 lines (68 loc) · 2.45 KB
/
docker-compose.yml
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
# Copyright IBM Corp. All Rights Reserved.
# Copyright 2020 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
version: '3'
services:
# org1
ecc.peer0.org1.example.com:
container_name: ${CC_ID}.peer0.org1.example.com
hostname: ${CC_ID}.peer0.org1.example.com
image: fpc/fpc-${CC_ID}${HW_EXTENSION:-}
entrypoint: /usr/local/bin/chaincode
environment:
- CHAINCODE_SERVER_ADDRESS=${CC_ID}.peer0.org1.example.com:9999
- CHAINCODE_PKG_ID=${ORG1_ECC_PKG_ID}
- FABRIC_LOGGING_SPEC=${FABRIC_LOGGING_SPEC:-DEBUG}
- SGX_MODE=${SGX_MODE:-SIM}
networks:
- default
volumes:
- ${SGX_CREDENTIALS_PATH:-../../../config/ias/}:/project/src/github.com/hyperledger-labs/fabric-private-chaincode/config/ias/
- ${AESMD_PATH:-/dev/null}:${AESMD_PATH:-/dev/null}
devices:
- ${SGX_DEVICE_PATH:-/dev/null}:${SGX_DEVICE_PATH:-/dev/null}
ercc.peer0.org1.example.com:
container_name: ercc.peer0.org1.example.com
hostname: ercc.peer0.org1.example.com
image: fpc/ercc
environment:
- CHAINCODE_SERVER_ADDRESS=ercc.peer0.org1.example.com:9999
- CHAINCODE_PKG_ID=${ORG1_ERCC_PKG_ID}
- FABRIC_LOGGING_SPEC=${FABRIC_LOGGING_SPEC:-DEBUG}
- SGX_MODE=${SGX_MODE:-SIM}
networks:
- default
# org2
ecc.peer0.org2.example.com:
container_name: ${CC_ID}.peer0.org2.example.com
hostname: ${CC_ID}.peer0.org2.example.com
image: fpc/fpc-${CC_ID}${HW_EXTENSION:-}
entrypoint: /usr/local/bin/chaincode
environment:
- CHAINCODE_SERVER_ADDRESS=${CC_ID}.peer0.org2.example.com:9999
- CHAINCODE_PKG_ID=${ORG2_ECC_PKG_ID}
- FABRIC_LOGGING_SPEC=${FABRIC_LOGGING_SPEC:-DEBUG}
- SGX_MODE=${SGX_MODE:-SIM}
networks:
- default
volumes:
- ${SGX_CREDENTIALS_PATH:-../../../config/ias/}:/project/src/github.com/hyperledger-labs/fabric-private-chaincode/config/ias/
- ${AESMD_PATH:-/dev/null}:${AESMD_PATH:-/dev/null}
devices:
- ${SGX_DEVICE_PATH:-/dev/null}:${SGX_DEVICE_PATH:-/dev/null}
ercc.peer0.org2.example.com:
container_name: ercc.peer0.org2.example.com
hostname: ercc.peer0.org2.example.com
image: fpc/ercc
environment:
- CHAINCODE_SERVER_ADDRESS=ercc.peer0.org2.example.com:9999
- CHAINCODE_PKG_ID=${ORG2_ERCC_PKG_ID}
- FABRIC_LOGGING_SPEC=${FABRIC_LOGGING_SPEC:-DEBUG}
- SGX_MODE=${SGX_MODE:-SIM}
networks:
- default
networks:
default:
external:
name: net_test