-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
46 lines (46 loc) · 1.32 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
version: '2.1'
services:
client:
build:
context: ./client
dockerfile: Dockerfile
ports:
- '3000:80'
identity-provider:
build:
context: ./identityProvider
dockerfile: Dockerfile
ports:
- '8080:8080'
environment:
WEB3_PROVIDER: 'http://ganache:8545'
# this needs to change when contracts change
RBAC_ADDRESS: '0xb61752bb7c6e865037995334848276b53c4688c8'
ganache:
image: trufflesuite/ganache-cli:latest
ports:
- "8545:8545"
command: ganache-cli --blockTime=2 --account="0x275AA504F6C89A95A5A0742DF03BF656E496538498986C318EE72C2D190FE77D,100000000000000000000" --mnemonic "album wire record stuff abandon mesh museum piece bean allow refuse below"
ganache-deploy:
build:
context: ./rbac
dockerfile: Dockerfile
healthcheck:
test: curl -sf -X POST --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' http://ganache:8545
interval: 5s
timeout: 5s
retries: 5
volumes:
- ./rbac/build:/usr/src/app/build
block-explorer:
image: alethio/ethereum-lite-explorer
environment:
APP_NODE_URL: http://localhost:8545
ports:
- '7000:80'
example-service-provider:
build:
context: ./exampleServiceProvider
dockerfile: Dockerfile
ports:
- '5000:5000'