Skip to content

Commit

Permalink
fix(tools): add docker network on tools/docker/sawtooth ledger
Browse files Browse the repository at this point in the history
Signed-off-by: Takuma TAKEUCHI <takeuchi.takuma@fujitsu.com>
  • Loading branch information
takeutak committed Oct 5, 2021
1 parent a9f381e commit 8a0d182
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tools/docker/sawtooth-testnet/sawtooth-default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,26 @@ services:
depends_on:
- validator
entrypoint: settings-tp -vv -C tcp://validator:4004
networks:
- sawtooth_net

intkey-tp-python:
image: hyperledger/sawtooth-intkey-tp-python:nightly
container_name: sawtooth-intkey-tp-python-default
depends_on:
- validator
entrypoint: intkey-tp-python -vv -C tcp://validator:4004
networks:
- sawtooth_net

xo-tp-python:
image: hyperledger/sawtooth-xo-tp-python:nightly
container_name: sawtooth-xo-tp-python-default
depends_on:
- validator
entrypoint: xo-tp-python -vv -C tcp://validator:4004
networks:
- sawtooth_net

validator:
image: hyperledger/sawtooth-validator:nightly
Expand All @@ -62,13 +68,17 @@ services:
--bind network:tcp://eth0:8800 \
--bind consensus:tcp://eth0:5050 \
\""
networks:
- sawtooth_net

devmode-engine:
image: hyperledger/sawtooth-devmode-engine-rust:nightly
container_name: sawtooth-devmode-engine-rust-default
depends_on:
- validator
entrypoint: devmode-engine-rust -C tcp://validator:5050
networks:
- sawtooth_net

rest-api:
image: hyperledger/sawtooth-rest-api:nightly
Expand All @@ -78,6 +88,8 @@ services:
depends_on:
- validator
entrypoint: sawtooth-rest-api -C tcp://validator:4004 --bind rest-api:8008
networks:
- sawtooth_net

shell:
image: hyperledger/sawtooth-shell:nightly
Expand All @@ -88,3 +100,9 @@ services:
sawtooth keygen && \
tail -f /dev/null \
\""
networks:
- sawtooth_net

networks:
sawtooth_net:
external: true
1 change: 1 addition & 0 deletions tools/docker/sawtooth-testnet/script-start-docker.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
echo "[process] start docker environment for Sawtooth testnet"
docker network create sawtooth_net
docker-compose -f sawtooth-default.yaml up -d

0 comments on commit 8a0d182

Please sign in to comment.