github.com/muhammedhassanm/blockchain@v0.0.0-20200120143007-697261defd4d/sawtooth-core-master/docker/compose/sawtooth-smallbank-go.yaml (about)

     1  # Copyright 2017 Intel Corporation
     2  #
     3  # Licensed under the Apache License, Version 2.0 (the "License");
     4  # you may not use this file except in compliance with the License.
     5  # You may obtain a copy of the License at
     6  #
     7  #     http://www.apache.org/licenses/LICENSE-2.0
     8  #
     9  # Unless required by applicable law or agreed to in writing, software
    10  # distributed under the License is distributed on an "AS IS" BASIS,
    11  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  # See the License for the specific language governing permissions and
    13  # limitations under the License.
    14  # ------------------------------------------------------------------------------
    15  
    16  version: "2.1"
    17  
    18  services:
    19  
    20    settings-tp:
    21      image: hyperledger/sawtooth-settings-tp:1.0
    22      container_name: sawtooth-settings-tp-default
    23      depends_on:
    24        - validator
    25      entrypoint: settings-tp -vv -C tcp://validator:4004
    26  
    27    smallbank-tp-go:
    28      image: hyperledger/sawtooth-smallbank-tp-go:1.0
    29      container_name: sawtooth-smallbank-tp-go-default
    30      depends_on:
    31        - validator
    32      entrypoint: smallbank-tp-go -vv tcp://validator:4004
    33  
    34    validator:
    35      image: hyperledger/sawtooth-validator:1.0
    36      container_name: sawtooth-validator-default
    37      expose:
    38        - 4004
    39      ports:
    40        - "4004:4004"
    41      # start the validator with an empty genesis batch
    42      entrypoint: "bash -c \"\
    43          sawadm keygen && \
    44          sawtooth keygen my_key && \
    45          sawset genesis -k /root/.sawtooth/keys/my_key.priv && \
    46          sawadm genesis config-genesis.batch && \
    47          sawtooth-validator -vv \
    48            --endpoint tcp://validator:8800 \
    49            --bind component:tcp://eth0:4004 \
    50            --bind network:tcp://eth0:8800 \
    51          \""
    52  
    53    rest-api:
    54      image: hyperledger/sawtooth-rest-api:1.0
    55      container_name: sawtooth-rest-api-default
    56      expose:
    57        - 8008
    58      ports:
    59        - "8008:8008"
    60      depends_on:
    61        - validator
    62      entrypoint: sawtooth-rest-api -C tcp://validator:4004 --bind rest-api:8008
    63  
    64    shell:
    65      image: hyperledger/sawtooth-shell:1.0
    66      container_name: sawtooth-shell-default
    67      depends_on:
    68        - rest-api
    69      entrypoint: "bash -c \"\
    70          sawtooth keygen && \
    71          tail -f /dev/null \
    72          \""