-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
139 lines (127 loc) · 3.58 KB
/
docker-compose.yaml
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
version: '2.1'
services:
client:
image: client
container_name: client
build:
context: ./client
dockerfile: docker/server.dockerfile
volumes:
- ./client/public/:/usr/local/apache2/htdocs/
expose:
- 80
ports:
- 8080:80
client-builder:
image: client-builder
container_name: client-builder
build:
context: ./client
dockerfile: docker/builder.dockerfile
volumes:
- ./client/:/pirate-talk/client/
- /pirate-talk/client/node_modules
processor-javascript:
image: processor-javascript
container_name: processor-javascript
build: ./processor-javascript
volumes:
- ./processor-javascript/:/pirate-talk/processor-javascript/
- /pirate-talk/processor-javascript/node_modules/
environment:
- VALIDATOR_URL=tcp://validator:4004
processor-python:
image: hyperledger/sawtooth-shell:1.0
container_name: processor-python
volumes:
- ./processor-python/:/pirate-talk/processor-python/
environment:
- PYTHONUNBUFFERED=0
working_dir: /pirate-talk/processor-python/
entrypoint: bin/pirate-tp --connect tcp://validator:4004
processor-rust:
image: processor-rust
container_name: processor-rust
build: ./processor-rust
volumes:
- ./processor-rust/:/pirate-talk/processor-rust/
- /pirate-talk/processor-rust/target/
entrypoint: |
bash -c "
cargo build &&
pirate-tp --connect tcp://validator:4004
"
validator:
image: hyperledger/sawtooth-validator:1.0
container_name: validator
volumes:
- .:/pirate-talk
expose:
- 4004
ports:
- 4004:4004
entrypoint: |
bash -c "
if [ ! -f /etc/sawtooth/keys/validator.priv ]; then
sawadm keygen &&
sawtooth keygen &&
sawset genesis \
-k /etc/sawtooth/keys/validator.priv \
-o config-genesis.batch &&
sawset proposal create \
-k /etc/sawtooth/keys/validator.priv \
sawtooth.swa.administrators=$$(cat /root/.sawtooth/keys/root.pub) \
sawtooth.validator.batch_injectors=block_info \
-o config.batch &&
sawadm genesis config-genesis.batch config.batch
fi;
sawtooth-validator -vv \
--endpoint tcp://validator:8800 \
--bind component:tcp://eth0:4004 \
--bind network:tcp://eth0:8800 \
"
rest-api:
image: hyperledger/sawtooth-rest-api:1.0
container_name: rest-api
expose:
- 8008
ports:
- 8008:8008
entrypoint: |
sawtooth-rest-api -vv
--connect tcp://validator:4004
--bind rest-api:8008
shell:
image: hyperledger/sawtooth-shell:1.0
container_name: shell
entrypoint: |
bash -c "
if [ ! -f /root/.sawtooth/keys/root.priv ]; then
sawtooth keygen
fi;
tail -f /dev/null
"
settings-tp:
image: hyperledger/sawtooth-settings-tp:1.0
container_name: settings-tp
entrypoint: settings-tp -vv --connect tcp://validator:4004
block-info-tp:
image: hyperledger/sawtooth-block-info-tp:1.0
container_name: block-info-tp
depends_on:
- validator
command: block-info-tp -vv --connect tcp://validator:4004
sabre-tp:
image: sabre-tp
container_name: sabre-tp
build:
context: ./sabre
dockerfile: tp/Dockerfile
entrypoint: sawtooth-sabre -vv -C tcp://validator:4004
sabre-cli:
image: sabre-cli
container_name: sabre-cli
build:
context: ./sabre
dockerfile: cli/Dockerfile
entrypoint: tail -f /dev/null