github.com/muhammedhassanm/blockchain@v0.0.0-20200120143007-697261defd4d/sawtooth-core-master/docker/compose/sawtooth-xo.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 # In first window, run: 17 # $ cd sawtooth-core 18 # $ ./bin/build_all 19 # $ docker-compose -f docker/compose/sawtooth-xo.yaml up 20 # 21 # In second window, run: 22 # $ docker exec -it xo-client bash 23 24 25 version: "3" 26 27 services: 28 29 xo-tp-python: 30 image: sawtooth-xo-tp-python:latest 31 volumes: 32 - ../../:/project/sawtooth-core 33 depends_on: 34 - validator 35 command: xo-tp-python -vv --connect tcp://validator:4004 36 stop_signal: SIGKILL 37 38 xo-tp-javascript: 39 image: sawtooth-xo-tp-javascript:latest 40 volumes: 41 - ../../:/project/sawtooth-core 42 depends_on: 43 - validator 44 command: xo-tp-javascript tcp://validator:4004 45 stop_signal: SIGKILL 46 47 xo-tp-java: 48 image: sawtooth-xo-tp-java:latest 49 volumes: 50 - ../../:/project/sawtooth-core 51 depends_on: 52 - validator 53 command: xo-tp-java tcp://validator:40000 54 stop_signal: SIGKILL 55 56 xo-tp-go: 57 image: sawtooth-xo-tp-go:latest 58 volumes: 59 - ../../:/project/sawtooth-core 60 depends_on: 61 - validator 62 command: xo-tp-go -vv --connect tcp://validator:4004 63 stop_signal: SIGKILL 64 65 validator: 66 image: sawtooth-validator:latest 67 volumes: 68 - ../../:/project/sawtooth-core 69 expose: 70 - 4004 71 ports: 72 - 4004 73 command: "bash -c \"\ 74 sawadm keygen && \ 75 sawadm genesis && \ 76 sawtooth-validator --endpoint tcp://validator:8800 -v \ 77 --bind component:tcp://eth0:4004 \ 78 --bind network:tcp://eth0:8800 \ 79 \"" 80 stop_signal: SIGKILL 81 82 rest-api: 83 image: sawtooth-rest-api:latest 84 volumes: 85 - ../../:/project/sawtooth-core 86 expose: 87 - 8008 88 ports: 89 - 8008 90 depends_on: 91 - validator 92 command: sawtooth-rest-api -v --connect tcp://validator:4004 --bind rest-api:8008 93 stop_signal: SIGKILL 94 95 xo-client: 96 container_name: xo-client 97 image: sawtooth-dev-python:latest 98 volumes: 99 - ../../:/project/sawtooth-core 100 depends_on: 101 - validator 102 - rest-api 103 # Wait for rest_api 104 command: "bash -c \"sawtooth keygen sawtooth 105 && tail -f /dev/null\"" 106 stop_signal: SIGKILL 107 environment: 108 PYTHONPATH: "/project/sawtooth-core/sdk/python:\ 109 /project/sawtooth-core/integration:\ 110 /project/sawtooth-core/signing"