-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
25 lines (25 loc) · 860 Bytes
/
docker-compose.yml
File metadata and controls
25 lines (25 loc) · 860 Bytes
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
version: '2.1'
services:
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: .
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:
- ./build:/usr/src/app/build
- ./app/src/contracts:/usr/src/app/app/src/contracts
block-explorer:
image: alethio/ethereum-lite-explorer
environment:
APP_NODE_URL: http://localhost:8545
ports:
- '7000:80'