-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.zapp.yml
166 lines (156 loc) · 4.35 KB
/
docker-compose.zapp.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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
version: '3.5'
services:
zapp-setup:
ports:
- '3000:3000'
build:
context: .
dockerfile: Dockerfile
depends_on:
- zokrates
volumes:
- ./circuits/:/app/circuits:delegated
- ./proving-files/:/app/output:delegated
- ./orchestration/common/write-vk.mjs:/app/write-vk.mjs # "
- ./orchestration/:/app/orchestration:delegated
- ./config/:/app/config:delegated
networks:
- zapp_network
zapp:
ports:
- '3000:3000'
build:
context: .
dockerfile: Dockerfile
depends_on:
- zokrates
- timber
- ganache
- zapp-mongo
volumes:
- ./build:/app/build
- ./contracts/:/app/contracts/
- ./migrations/:/app/migrations/
- ./truffle-config.js:/app/truffle-config.js
- ./circuits/:/app/circuits:delegated
- ./orchestration/:/app/orchestration:delegated
- ./test/:/app/test:delegated
- ./config/:/app/config:delegated
environment:
BLOCKCHAIN_HOST: ws://ganache
BLOCKCHAIN_PORT: 8545
RPC_URL: ws://ganache:8545
DEFAULT_ACCOUNT: '0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1'
KEY: '0x4f3edf983ac636a65a842ce7c78d9aa706d3b113bce9c46f30d7d21715b23b1d'
LOG_LEVEL: info
MONGO_HOST: mongodb://zapp-mongo
MONGO_PORT: 27019
MONGO_NAME: zapp_db
MONGO_USERNAME: admin
MONGO_PASSWORD: admin
networks:
- zapp_network
zokrates:
image: ghcr.io/eyblockchain/zokrates-worker-starlight:v0.2
# platform: linux/arm64/v8
volumes:
- ./circuits/:/app/circuits:delegated
- ./proving-files/:/app/output:delegated
- ./orchestration/common/write-vk.mjs:/app/write-vk.mjs
- ./orchestration/common/db/:/app/orchestration/common/db:delegated
environment:
PROVING_SCHEME: 'g16'
ports:
- '8080:80'
networks:
- zapp_network
timber:
build:
context: https://github.com/EYBlockchain/timber.git#starlight/testnet:merkle-tree
dockerfile: Dockerfile
restart: on-failure
depends_on:
- timber-mongo
- ganache
volumes:
- ./config/:/app/config
- ./contracts/:/app/contracts:consistent
- ./build/:/app/build:consistent
ports:
- '9000:80'
environment:
HASH_TYPE: 'mimc'
LOG_LEVEL: 'silly'
UNIQUE_LEAVES: 'true'
BLOCKCHAIN_HOST: ws://ganache
BLOCKCHAIN_PORT: 8545
RPC_URL: ws://ganache:8545
DEFAULT_ACCOUNT: '0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1'
KEY: '0x4f3edf983ac636a65a842ce7c78d9aa706d3b113bce9c46f30d7d21715b23b1d'
CONTRACT_LOCATION: 'default'
MONGO_HOST: mongodb://timber-mongo
MONGO_PORT: 27017
MONGO_NAME: merkle_tree
MONGO_USERNAME: admin
MONGO_PASSWORD: admin
networks:
- zapp_network
#The database storing the merkle tree
timber-mongo:
build:
context: .
dockerfile: Dockerfile.mongo
environment:
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=admin
- MONGO_INITDB_DATABASE=merkle_tree
volumes:
- timber-mongo-volume:/data/db
networks:
- zapp_network
#The database storing commitments
zapp-mongo:
build:
context: .
dockerfile: Dockerfile.mongo
environment:
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=admin
- MONGO_INITDB_DATABASE=zapp_db
volumes:
- zapp-commitment-volume:/data/db
networks:
- zapp_network
ganache:
image: trufflesuite/ganache:v7.4.4
command: --accounts=10 --gasLimit=100000000 --deterministic -i 1337
ports:
- '8545:8545'
networks:
- zapp_network
deployer:
build:
context: .
dockerfile: Dockerfile.deployer
depends_on:
- ganache
volumes:
- ./build:/app/build
- ./contracts/:/app/contracts/
- ./migrations/:/app/migrations/
- ./truffle-config.js:/app/truffle-config.js
- ./orchestration/:/app/orchestration:delegated
environment:
BLOCKCHAIN_HOST: ws://ganache
BLOCKCHAIN_PORT: 8545
RPC_URL: ws://ganache:8545
DEFAULT_ACCOUNT: '0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1'
KEY: '0x4f3edf983ac636a65a842ce7c78d9aa706d3b113bce9c46f30d7d21715b23b1d'
networks:
- zapp_network
volumes:
timber-mongo-volume: {}
zapp-commitment-volume: {}
networks:
zapp_network:
name: zapp_network