This repository has been archived by the owner on Feb 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
/
docker-compose.yml
141 lines (136 loc) · 4.54 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
version: '2'
services:
escrowdashboard:
build:
context: escrow-dashboard
job:
image: humanprotocol/hmt-escrow:latest
build: .
environment:
- HMT_ETH_SERVER=http://ganache:8545
- HET_WAIT_FOR_SERVER=http://het:8000
- GAS_LIMIT=6700000
- ETH_HOST=ganache
- ETH_PORT=8545
- ESCROW_BUCKETNAME=escrow-results
- ESCROW_PUBLIC_BUCKETNAME=escrow-public-results
- ESCROW_AWS_ACCESS_KEY_ID=minio
- ESCROW_AWS_SECRET_ACCESS_KEY=minio123
- ESCROW_ENDPOINT_URL=http://minio:9000
- ESCROW_PUBLIC_RESULTS_URL=http://minio:9000
- ESCROW_AWS_DEFAULT_REGION=us-west-2
- DEBUG=true
- USE_ESCROW_S3_STORAGE=True
depends_on:
ganache:
condition: service_healthy
minio:
condition: service_healthy
links:
- ganache
volumes:
- ./minio:/data
- .:/work
- ./deployed-hmtoken:/deployed-hmtoken
command: sh -c "rm /deployed-hmtoken/hmt.address.json; timeout 60 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
healthcheck:
test: wget --spider --post-data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' ganache:8545 || exit 1
interval: 5s
timeout: 5s
retries: 5
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/'
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
volumes:
- ./minio:/data
db:
container_name: postgres_db
image: postgres
restart: always
environment:
- POSTGRES_USER=hmt
- POSTGRES_PASSWORD=qwerty
- POSTGRES_DB=hmt
volumes:
- pgdata:/var/lib/postgresql/data
jlc:
image: jlc
build:
context: job-launcher-client
api:
build:
context: job-launcher-server
depends_on:
minio:
condition: service_healthy
ganache:
condition: service_healthy
environment:
- DB_TYPE=postgres
- POSTGRES_HOST=postgres_db
- POSTGRES_USER=hmt
- POSTGRES_PASSWORD=qwerty
- POSTGRES_DB=hmt
- POSTGRES_SYNC=false
- JWT_SECRET=secrete
- POSTGRES_PORT=5432
- POSTMARK_API_KEY=53246f5b-733c-47f0-ad70-52f57723848a
- FE_URL=http://localhost:3001
- WEB3_CLIENT_NAME=eth
- WEB3_PROVIDER_URL=http://ganache:8545
- WEB3_OWNER_PRIVATE_KEY=28e516f1e2f99e96a48a23cea1f94ee5f073403a1c68e818263f0eb898f1c8e5
- WEB3_OWNER_ADDRESS=0x1413862C2B7054CDbfdc181B83962CB0FC11fD92
- WEB3_JOB_LAUNCHER_PRIVATE_KEY=0x486a0621e595dd7fcbe5608cbbeec8f5a8b5cabe7637f11eccfc7acd408c3a0e
- WEB3_JOB_LAUNCHER_ADDRESS=0x61F9F0B31eacB420553da8BCC59DC617279731Ac
- WEB3_REQUESTER_PRIVATE_KEY=0x657b6497a355a3982928d5515d48a84870f057c4d16923eb1d104c0afada9aa8
- WEB3_REQUESTER_ADDRESS=0xD979105297fB0eee83F7433fC09279cb5B94fFC6
- WEB3_ESCROW_FACTORY_ADDRESS=0x3FF93a3847Cd1fa62DD9BcfE351C4b6BcCcF10cB
- WEB3_HMT_TOKEN=0x444c45937D2202118a0FF9c48d491cef527b59dF
- RECORDING_ORACLE_ADDRESS=0x031bc0a65bD0cB5e781314D4eC75e418aEe75A22
- REPUTATION_ORACLE_ADDRESS=0x031bc0a65bD0cB5e781314D4eC75e418aEe75A22
- EXCHANGE_ORACLE_ADDRESS=0x031bc0a65bD0cB5e781314D4eC75e418aEe75A22
- RECORDING_ORACLE_URL=http://127.0.0.1:5003
- REPUTATION_ORACLE_URL=http://127.0.0.1:5002
- EXCHANGE_ORACLE_URL=http://127.0.0.1:5001
- RECORDING_ORACLE_STAKE=100
- REPUTATION_ORACLE_STAKE=100
- JWT_ACCESS_TOKEN_EXPIRES_IN=1000000000
- JWT_REFRESH_TOKEN_EXPIRES_IN=1000000000
- AWS_ACCESS_KEY_ID=AKIAU6WGWXBX4YQKGL4C
- AWS_SECRET_ACCESS_KEY=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
- AWS_REGION=eu-west-3
- JOB_LAUNCHER_URL=http://0.0.0.0:3000
- HOST=0.0.0.0
- PORT=3000
- MIGRATIONS_RUN=${MIGRATIONS_RUN}
ports:
- "3000:3000"
depends_on:
- db
- job
volumes:
- ./job-launcher-server:/app
- /app/node_modules
command: sh -c "npm run start"
volumes:
pgdata:
pgadmin-data:
ganache: