github.com/muhammedhassanm/blockchain@v0.0.0-20200120143007-697261defd4d/sawtooth-core-master/docker/compose/smallbank-local-mounted.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 volumes: 23 - ../../:/project/sawtooth-core 24 container_name: sawtooth-settings-tp-default 25 depends_on: 26 - validator 27 command: settings-tp -vv --connect tcp://validator:4004 28 29 smallbank-tp-go: 30 image: sawtooth-smallbank-tp-go:latest 31 container_name: sawtooth-smallbank-tp-go-default 32 volumes: 33 - ../../:/project/sawtooth-core 34 depends_on: 35 - validator 36 command: smallbank-tp-go -vv -C tcp://validator:4004 37 38 validator: 39 image: sawtooth-validator-mounted:latest 40 container_name: sawtooth-validator-mounted 41 volumes: 42 - ../../:/project/sawtooth-core 43 expose: 44 - 4004 45 ports: 46 - "4004:4004" 47 command: "bash -c \"\ 48 (telegraf &) && \ 49 sawadm keygen && \ 50 sawtooth keygen && \ 51 sawset genesis && \ 52 sawadm genesis config-genesis.batch && \ 53 sawtooth-validator -vv \ 54 --endpoint tcp://validator:8800 \ 55 --bind component:tcp://eth0:4004 \ 56 --bind network:tcp://eth0:8800 \ 57 --opentsdb-url http://influxdb:8086 \ 58 --opentsdb-db metrics 59 \"" 60 61 rest-api: 62 image: sawtooth-rest-api:latest 63 container_name: sawtooth-rest-api-default 64 volumes: 65 - ../../:/project/sawtooth-core 66 expose: 67 - 8008 68 ports: 69 - "8008:8008" 70 depends_on: 71 - validator 72 command: sawtooth-rest-api -v --connect tcp://validator:4004 --bind rest-api:8008 --opentsdb-url http://influxdb:8086 --opentsdb-db metrics 73 74 influxdb: 75 image: sawtooth-stats-influxdb:latest 76 container_name: sawtooth-stats-influxdb-default 77 ports: 78 - "8086:8086" 79 stop_signal: SIGKILL 80 81 grafana: 82 image: sawtooth-stats-grafana:latest 83 container_name: sawtooth-stats-grafana-default 84 ports: 85 - "3000:3000" 86 volumes: 87 - ../../:/project/sawtooth-core 88 stop_signal: SIGKILL