-
Notifications
You must be signed in to change notification settings - Fork 59
/
docker-compose-infura.yml
25 lines (22 loc) · 1.06 KB
/
docker-compose-infura.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
version: "2.3"
services:
plasma-contracts:
environment:
# The private keys are likely different from the main docker-compose.yml:
# 1. DEPLOYER_PRIVATEKEY needs to have enough ETH on the REMOTE_URL network
# 2. AUTHORITY_PRIVATEKEY needs to have nonce=0 on the REMOTE_URL network
- REMOTE_URL=https://rinkeby.infura.io/v3/${INFURA_API_KEY}
- DEPLOYER_PRIVATEKEY=${DEPLOYER_PRIVATEKEY}
- MAINTAINER_PRIVATEKEY=${MAINTAINER_PRIVATEKEY}
- AUTHORITY_PRIVATEKEY=${AUTHORITY_PRIVATEKEY}
childchain:
environment:
- ETHEREUM_RPC_URL=https://rinkeby.infura.io/v3/${INFURA_API_KEY}
- PRIVATE_KEY=${AUTHORITY_PRIVATEKEY}
watcher:
environment:
- ETHEREUM_RPC_URL=https://rinkeby.infura.io/v3/${INFURA_API_KEY}
geth:
# We don't need geth but docker-compose doesn't support overrides to remove or disable a service
# So here we set `--dev.period 0` to minimize resource utilization.
entrypoint: /bin/sh -c "apk add curl && geth --dev --dev.period 0 --rpc --rpcaddr 0.0.0.0 --rpcvhosts=* --rpcport=8545"