github.com/inklabsfoundation/inkchain@v0.17.1-0.20181025012015-c3cef8062f19/examples/creative/scripts/docker-compose.yaml (about)

     1  #
     2  # Copyright INK Corp. All Rights Reserved.
     3  #
     4  # SPDX-License-Identifier: Apache-2.0
     5  #
     6  version: '2'
     7  
     8  services:
     9  
    10    ca.org1.example.com:
    11      image: inklabsfoundation/inkchain-ca
    12      environment:
    13        - INKCHAIN_CA_HOME=/etc/inkchain/inkchain-ca-server
    14        - INKCHAIN_CA_SERVER_CA_CERTFILE=/etc/inkchain/inkchain-ca-server-config/ca.org1.example.com-cert.pem
    15        - INKCHAIN_CA_SERVER_CA_KEYFILE=/etc/inkchain/inkchain-ca-server-config/0e729224e8b3f31784c8a93c5b8ef6f4c1c91d9e6e577c45c33163609fe40011_sk
    16        - INKCHAIN_CA_SERVER_TLS_ENABLED=true
    17        - INKCHAIN_CA_SERVER_TLS_CERTFILE=/etc/inkchain/inkchain-ca-server-config/ca.org1.example.com-cert.pem
    18        - INKCHAIN_CA_SERVER_TLS_KEYFILE=/etc/inkchain/inkchain-ca-server-config/0e729224e8b3f31784c8a93c5b8ef6f4c1c91d9e6e577c45c33163609fe40011_sk
    19      ports:
    20        - "7054:7054"
    21      command: sh -c 'inkchain-ca-server start -b admin:adminpw -d'
    22      volumes:
    23        -  "../../cli_test/channel/crypto-config/peerOrganizations/org1.example.com/ca/:/etc/inkchain/inkchain-ca-server-config"
    24      container_name: ca_peerOrg1
    25  
    26  
    27    orderer.example.com:
    28      container_name: orderer.example.com
    29      image: inklabsfoundation/inkchain-orderer
    30      environment:
    31        - ORDERER_GENERAL_LOGLEVEL=debug
    32        - ORDERER_GENERAL_LISTENADDRESS=0.0.0.0
    33        - ORDERER_GENERAL_GENESISMETHOD=file
    34        - ORDERER_GENERAL_GENESISFILE=/etc/inkchain/configtx/orderer.genesis.block
    35        - ORDERER_GENERAL_LOCALMSPID=OrdererMSP
    36        - ORDERER_GENERAL_LOCALMSPDIR=/etc/inkchain/crypto/orderer/msp
    37        - ORDERER_GENERAL_TLS_ENABLED=true
    38        - ORDERER_GENERAL_TLS_PRIVATEKEY=/etc/inkchain/crypto/orderer/tls/server.key
    39        - ORDERER_GENERAL_TLS_CERTIFICATE=/etc/inkchain/crypto/orderer/tls/server.crt
    40        - ORDERER_GENERAL_TLS_ROOTCAS=[/etc/inkchain/crypto/orderer/tls/ca.crt, /etc/inkchain/crypto/peerOrg1/tls/ca.crt, /etc/inkchain/crypto/peerOrg2/tls/ca.crt]
    41      working_dir: /opt/gopath/src/github.com/inklabsfoundation/inkchain/orderers
    42      command: orderer
    43      ports:
    44        - 7050:7050
    45      volumes:
    46          - ../../cli_test/channel/genesis.block:/etc/inkchain/configtx/orderer.genesis.block
    47          - ../../cli_test/channel/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/:/etc/inkchain/crypto/orderer
    48          - ../../cli_test/channel/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/:/etc/inkchain/crypto/peerOrg1
    49          - ../../cli_test/channel/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/:/etc/inkchain/crypto/peerOrg2
    50  
    51    peer0.org1.example.com:
    52      container_name: peer0.org1.example.com
    53      extends:
    54        file:   base.yaml
    55        service: peer-base
    56      environment:
    57        - CORE_PEER_ID=peer0.org1.example.com
    58        - CORE_PEER_LOCALMSPID=Org1MSP
    59        - CORE_PEER_ADDRESS=peer0.org1.example.com:7051
    60      ports:
    61        - 7051:7051
    62        - 7053:7053
    63      volumes:
    64          - ../../cli_test/channel/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/:/etc/inkchain/crypto/peer
    65      depends_on:
    66        - orderer.example.com
    67    cli:
    68      container_name: cli
    69      image: inklabsfoundation/inkchain-tools
    70      tty: true
    71      environment:
    72        #- GOPATH=/opt/gopath
    73        #- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
    74        - CORE_LOGGING_LEVEL=DEBUG
    75        - CORE_PEER_ID=cli
    76        - CORE_PEER_ADDRESS=peer0.org1.example.com:7051
    77        - CORE_PEER_LOCALMSPID=Org1MSP
    78        - CORE_PEER_TLS_ENABLED=true
    79        - CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/inklabsfoundation/inkchain/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt
    80        - CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/inklabsfoundation/inkchain/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key
    81        - CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/inklabsfoundation/inkchain/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt
    82        - CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/inklabsfoundation/inkchain/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp
    83      working_dir: /opt/gopath/src/github.com/inklabsfoundation/inkchain/peer
    84      command: bash -c 'while true; do sleep 20171104; done'
    85      volumes:
    86          #- /var/run/:/host/var/run/
    87          - ../../token:/opt/gopath/src/github.com/inklabsfoundation/inkchain/examples/token
    88          - ../../creative:/opt/gopath/src/github.com/inklabsfoundation/inkchain/examples/creative
    89          - ../../cli_test/channel/crypto-config:/opt/gopath/src/github.com/inklabsfoundation/inkchain/peer/crypto/
    90          - ../../cli_test/scripts:/opt/gopath/src/github.com/inklabsfoundation/inkchain/peer/scripts/
    91          - ../../cli_test/channel/mychannel.tx:/opt/gopath/src/github.com/inklabsfoundation/inkchain/peer/channel-artifacts/mychannel.tx
    92      depends_on:
    93          - orderer.example.com
    94          - peer0.org1.example.com
    95      links:
    96        - orderer.example.com
    97        - peer0.org1.example.com