github.com/muhammedhassanm/blockchain@v0.0.0-20200120143007-697261defd4d/sawtooth-core-master/docker/compose/sawtooth-local.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-local
    23      volumes:
    24        - ../../:/project/sawtooth-core
    25      depends_on:
    26        - validator
    27      command: settings-tp -vv -C tcp://validator:4004
    28      stop_signal: SIGKILL
    29  
    30    intkey-tp-python:
    31      image: sawtooth-intkey-tp-python:latest
    32      container_name: sawtooth-intkey-tp-python-local
    33      volumes:
    34        - ../../:/project/sawtooth-core
    35      depends_on:
    36        - validator
    37      command: intkey-tp-python -vv -C tcp://validator:4004
    38      stop_signal: SIGKILL
    39  
    40    xo-tp-python:
    41      image: sawtooth-xo-tp-python:latest
    42      container_name: sawtooth-xo-tp-python-local
    43      volumes:
    44        - ../../:/project/sawtooth-core
    45      depends_on:
    46        - validator
    47      command: xo-tp-python -vv -C tcp://validator:4004
    48      stop_signal: SIGKILL
    49  
    50    validator:
    51      image: sawtooth-validator:latest
    52      container_name: sawtooth-validator-local
    53      volumes:
    54        - ../../:/project/sawtooth-core
    55      expose:
    56        - 4004
    57        - 8800
    58      ports:
    59        - "4004:4004"
    60      # start the validator with an empty genesis batch
    61      command: "bash -c \"\
    62          sawadm keygen && \
    63          sawadm genesis && \
    64          sawtooth-validator -vv \
    65              --endpoint tcp://validator:8800 \
    66              --bind component:tcp://eth0:4004 \
    67              --bind network:tcp://eth0:8800 \
    68      \""
    69      stop_signal: SIGKILL
    70  
    71    rest-api:
    72      image: sawtooth-rest-api:latest
    73      container_name: sawtooth-rest-api-local
    74      volumes:
    75        - ../../:/project/sawtooth-core
    76      ports:
    77        - "8008:8008"
    78      depends_on:
    79        - validator
    80      command: sawtooth-rest-api -v --connect tcp://validator:4004 --bind rest-api:8008
    81      stop_signal: SIGKILL
    82  
    83    client:
    84      image: sawtooth-dev-python:latest
    85      container_name: sawtooth-client-local
    86      volumes:
    87        - ../../:/project/sawtooth-core
    88      depends_on:
    89        - rest-api
    90      entrypoint: "bash -c \"\
    91          sawtooth keygen && \
    92          tail -f /dev/null \
    93          \""