matiru

Blockchain-Based Supply Chain Transparency for Agricultural Produce

fabric/network/docker/docker-compose-ca.yaml (2721B)


 1networks:
 2  matiru:
 3    name: matiru-network
 4
 5services:
 6  ca_org1:
 7    image: hyperledger/fabric-ca:latest
 8    labels:
 9      service: hyperledger-fabric
10    environment:
11      - FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
12      - FABRIC_CA_SERVER_CA_NAME=ca-org1
13      - FABRIC_CA_SERVER_TLS_ENABLED=true
14      - FABRIC_CA_SERVER_PORT=7054
15    ports:
16      - "7054:7054"
17    command: sh -c 'fabric-ca-server start -b admin:adminpw -d'
18    volumes:
19      - ../organizations/fabric-ca/org1:/etc/hyperledger/fabric-ca-server
20    container_name: ca_org1
21    networks:
22      - matiru
23
24  ca_org2:
25    image: hyperledger/fabric-ca:latest
26    labels:
27      service: hyperledger-fabric
28    environment:
29      - FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
30      - FABRIC_CA_SERVER_CA_NAME=ca-org2
31      - FABRIC_CA_SERVER_TLS_ENABLED=true
32      - FABRIC_CA_SERVER_PORT=8054
33    ports:
34      - "8054:8054"
35    command: sh -c 'fabric-ca-server start -b admin:adminpw -d'
36    volumes:
37      - ../organizations/fabric-ca/org2:/etc/hyperledger/fabric-ca-server
38    container_name: ca_org2
39    networks:
40      - matiru
41
42  ca_org3:
43    image: hyperledger/fabric-ca:latest
44    labels:
45      service: hyperledger-fabric
46    environment:
47      - FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
48      - FABRIC_CA_SERVER_CA_NAME=ca-org3
49      - FABRIC_CA_SERVER_TLS_ENABLED=true
50      - FABRIC_CA_SERVER_PORT=11054
51    ports:
52      - "11054:11054"
53    command: sh -c 'fabric-ca-server start -b admin:adminpw -d'
54    volumes:
55      - ../organizations/fabric-ca/org3:/etc/hyperledger/fabric-ca-server
56    container_name: ca_org3
57    networks:
58      - matiru
59
60  ca_org4:
61    image: hyperledger/fabric-ca:latest
62    labels:
63      service: hyperledger-fabric
64    environment:
65      - FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
66      - FABRIC_CA_SERVER_CA_NAME=ca-org4
67      - FABRIC_CA_SERVER_TLS_ENABLED=true
68      - FABRIC_CA_SERVER_PORT=13054
69    ports:
70      - "13054:13054"
71    command: sh -c 'fabric-ca-server start -b admin:adminpw -d'
72    volumes:
73      - ../organizations/fabric-ca/org4:/etc/hyperledger/fabric-ca-server
74    container_name: ca_org4
75    networks:
76      - matiru
77
78  ca_orderer:
79    image: hyperledger/fabric-ca:latest
80    labels:
81      service: hyperledger-fabric
82    environment:
83      - FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
84      - FABRIC_CA_SERVER_CA_NAME=ca-orderer
85      - FABRIC_CA_SERVER_TLS_ENABLED=true
86      - FABRIC_CA_SERVER_PORT=9054
87    ports:
88      - "9054:9054"
89    command: sh -c 'fabric-ca-server start -b admin:adminpw -d'
90    volumes:
91      - ../organizations/fabric-ca/ordererOrg:/etc/hyperledger/fabric-ca-server
92    container_name: ca_orderer
93    networks:
94      - matiru