forked from humanprotocol/hmt-escrow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
73 lines (67 loc) · 1.87 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
version: '2'
services:
job:
image: humanprotocol/hmt-escrow:latest
build: .
environment:
- HMT_ETH_SERVER=http://ganache:8545
- HET_WAIT_FOR_SERVER=http://het:8000
- GAS_LIMIT=6700000
- IPFS_HOST=ipfs
- IPFS_PORT=5001
- ETH_HOST=ganache
- ETH_PORT=8545
- ESCROW_BUCKETNAME=escrow-results
- ESCROW_AWS_ACCESS_KEY_ID=minio
- ESCROW_AWS_SECRET_ACCESS_KEY=minio123
- ESCROW_ENDPOINT_URL=http://minio:9000
- ESCROW_AWS_DEFAULT_REGION=us-west-2
- DEBUG=true
- USE_ESCROW_S3_STORAGE=True
depends_on:
- minio
- ganache
links:
- ganache
- ipfs
- kvstore
volumes:
- eth_kvstore_addr:/deployed-kvstore
- ./minio:/data
- .:/work
- ./deployed-hmtoken:/deployed-hmtoken
command: sh -c "rm /deployed-hmtoken/hmt.address.json; curl --retry 10 --retry-connrefused --retry-max-time 10 http://ganache:8545; cd /work && npm install && npm run test; ./bin/wait_then_run"
ganache:
image: trufflesuite/ganache-cli:latest
command: node ./build/cli.node.js --noVMErrorsOnRPCResponse -m goat --hostname 0.0.0.0 --unlock 0x1413862c2b7054cdbfdc181b83962cb0fc11fd92 -g 1000
ports:
- 8545:8545
kvstore:
image: hcaptcha/eth-kvstore
links:
- ganache
environment:
- ETH_HOST=ganache
- ETH_PORT=8545
- ADDRESS_OUTPUT_FILENAME=/deployed/ethkvstore.address.json
volumes:
- eth_kvstore_addr:/deployed
ipfs:
image: ipfs/go-ipfs:v0.4.22
command: daemon --offline
ports:
- 5001:5001
minio:
image: minio/minio:RELEASE.2020-04-28T23-56-56Z
ports:
- "9000:9000"
expose:
- "9000"
environment:
MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: minio123
entrypoint: sh -c 'minio server /data/'
volumes:
- ./minio:/data
volumes:
eth_kvstore_addr: