-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-tls-ca.yaml
61 lines (58 loc) · 2.07 KB
/
docker-compose-tls-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
50
51
52
53
54
55
56
57
58
59
60
61
version: '2'
networks:
fabric-network:
services:
tls.ca.org1.example.com:
image: hyperledger/fabric-ca:1.5
environment:
- FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
- FABRIC_CA_SERVER_TLS_ENABLED=true
- FABRIC_CA_SERVER_PORT=7054
- FABRIC_CA_SERVER_CA_NAME=tls.ca.org1.example.com
- FABRIC_CA_SERVER_CSR_CN=tls.ca.org1.example.com
- FABRIC_CA_SERVER_CSR_HOSTS=localhost
ports:
- 7054:7054
command: sh -c 'fabric-ca-server start -b tlsadmin:tlsadminpw'
#command: tail -f /dev/null
volumes:
- ./fabric-ca/org1.example.com/tls.ca:/etc/hyperledger/fabric-ca-server
container_name: tls.ca.org1.example.com
networks:
- fabric-network
tls.ca.org2.example.com:
image: hyperledger/fabric-ca:1.5
environment:
- FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
- FABRIC_CA_SERVER_TLS_ENABLED=true
- FABRIC_CA_SERVER_PORT=8054
- FABRIC_CA_SERVER_CA_NAME=tls.ca.org2.example.com
- FABRIC_CA_SERVER_CSR_CN=tls.ca.org2.example.com
- FABRIC_CA_SERVER_CSR_HOSTS=localhost
ports:
- 8054:8054
command: sh -c 'fabric-ca-server start -b tlsadmin:tlsadminpw'
#command: tail -f /dev/null
volumes:
- ./fabric-ca/org2.example.com/tls.ca:/etc/hyperledger/fabric-ca-server
container_name: tls.ca.org2.example.com
networks:
- fabric-network
tls.ca.orderer.example.com:
image: hyperledger/fabric-ca:1.5
environment:
- FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
- FABRIC_CA_SERVER_TLS_ENABLED=true
- FABRIC_CA_SERVER_PORT=9054
- FABRIC_CA_SERVER_CA_NAME=tls.ca.orderer.example.com
- FABRIC_CA_SERVER_CSR_CN=tls.ca.orderer.example.com
- FABRIC_CA_SERVER_CSR_HOSTS=localhost
ports:
- 9054:9054
command: sh -c 'fabric-ca-server start -b tlsadmin:tlsadminpw'
#command: tail -f /dev/null
volumes:
- ./fabric-ca/orderer.example.com/tls.ca:/etc/hyperledger/fabric-ca-server
container_name: tls.ca.orderer.example.com
networks:
- fabric-network