This repository has been archived by the owner on Jun 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
102 lines (92 loc) · 2.59 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
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-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
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