-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-ca.yaml
49 lines (44 loc) · 1.79 KB
/
docker-ca.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
# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
version: '2'
#volumes:
# peer2.org1.fp.com:
networks:
basic-ca:
services:
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
- ./ca/rootCA:/etc/hyperledger/fabric-ca-rootserver
ports:
- "7054:7054"
networks:
- basic-ca
middle.fp.com:
image: hyperledger/fabric-ca:$IMAGE_TAG
container_name: middle.fp.com
environment:
- FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-middleserver
- FABRIC_CA_SERVER_CA_NAME=middle.fp.com
- FABRIC_CA_SERVER_TLS_ENABLED=false
command: sh -c 'fabric-ca-server start -b admin:vsaCNbZGpOtR -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
- ./ca/middleCA:/etc/hyperledger/fabric-ca-middleserver
ports:
- "7055:7055"
depends_on:
- root.fp.com
networks:
- basic-ca