github.com/muhammedhassanm/blockchain@v0.0.0-20200120143007-697261defd4d/sawtooth-core-master/docker/compose/smallbank-local-installed.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: sawtooth-settings-tp:latest
    22      container_name: sawtooth-settings-tp-default
    23      depends_on:
    24        - validator
    25      entrypoint: settings-tp -vv --connect tcp://validator:4004
    26  
    27    smallbank-tp-go:
    28      image: sawtooth-smallbank-tp-go:latest
    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: sawtooth-validator:latest
    36      container_name: sawtooth-validator-default
    37      expose:
    38        - 4004
    39        - 8800
    40      ports:
    41        - "4004:4004"
    42        - "8800:8800"
    43      entrypoint: "bash -c \"\
    44          sawadm keygen && \
    45          sawtooth keygen && \
    46          sawset genesis && \
    47          sawadm genesis config-genesis.batch && \
    48          sawtooth-validator -vv \
    49            --endpoint tcp://validator:8800 \
    50            --bind component:tcp://eth0:4004 \
    51            --bind network:tcp://eth0:8800 \
    52          \""
    53  
    54    rest-api:
    55      image: sawtooth-rest-api:latest
    56      container_name: sawtooth-rest-api-default
    57      expose:
    58        - 8008
    59      ports:
    60        - "8008:8008"
    61      depends_on:
    62        - validator
    63      entrypoint: sawtooth-rest-api --connect tcp://validator:4004 --bind rest-api:8008