-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
118 lines (107 loc) · 2.97 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# Launches a minimum development network with a single default validator
#
# TODO(matt9j) Formalize keyhandling
version: "3"
services:
settings-tp:
image: hyperledger/sawtooth-settings-tp:1.1
container_name: sawtooth-settings-tp
depends_on:
- validator
entrypoint: settings-tp -vv -C tcp://validator:4004
identity-tp:
image: hyperledger/sawtooth-identity-tp:1.1
container_name: sawtooth-identity-tp
depends_on:
- validator
entrypoint: identity-tp -vv -C tcp://validator:4004
crdt-tp:
build:
context: ./
dockerfile: crdt-tp-python/Dockerfile
#image: matt9j/crdt-tp-python:staging
container_name: crdt-tp-python
depends_on:
- validator
entrypoint: "python3 crdt-tp-python/processor/main.py \
--crdt http://ccn-server:5000
-C tcp://validator:4004 \
-v
"
validator:
image: hyperledger/sawtooth-validator:1.1
container_name: sawtooth-validator
expose:
- 4004
ports:
- "4004:4004"
# start the validator with an empty genesis batch
entrypoint: "bash -c \"\
if sawadm keygen ; then \
sawtooth keygen my_key && \
sawset genesis -k /root/.sawtooth/keys/my_key.priv && \
sawadm genesis config-genesis.batch ; \
fi ; \
sawtooth-validator -v \
--endpoint tcp://validator:8800 \
--bind component:tcp://eth0:4004 \
--bind network:tcp://eth0:8800 \
--bind consensus:tcp://eth0:5050 \
\""
devmode-engine:
image: hyperledger/sawtooth-devmode-engine-rust:1.1
container_name: sawtooth-devmode-engine-rust-default
depends_on:
- validator
entrypoint: devmode-engine-rust -C tcp://validator:5050
rest-api-0:
image: hyperledger/sawtooth-rest-api:1.1
container_name: sawtooth-rest-api
ports:
- "8008:8008"
depends_on:
- validator
entrypoint: sawtooth-rest-api -C tcp://validator:4004 --bind rest-api-0:8008
ccn-server:
build:
context: ./
dockerfile: ccn-server/Dockerfile
container_name: ccn-server
depends_on:
- rest-api-0
ports:
- "5000:5000"
working_dir: /ccn-server
entrypoint: "bash -c \"\
sawtooth keygen ; \
pipenv run python server/main.py \
--sawtoothApi http://rest-api-0:8008 \
--neighbors 'ccn-darrow' \
--host 'ccn-server'; \
\""
ccn-darrow:
build:
context: ./
dockerfile: ccn-server/Dockerfile
container_name: ccn-darrow
depends_on:
- rest-api-0
expose:
- 5000
working_dir: /ccn-server
entrypoint: "bash -c \"\
sawtooth keygen ; \
pipenv run python server/main.py \
--sawtoothApi http://rest-api-0:8008 \
--neighbors 'ccn-server' \
--host 'ccn-darrow'; \
\""
shell:
image: hyperledger/sawtooth-all:1.1
container_name: sawtooth-shell
depends_on:
- rest-api-0
entrypoint: "bash -c \"\
sawtooth keygen ; \
tail -f /dev/null \
\""