Skip to content

Instantly share code, notes, and snippets.

@yatender-oktalk
Created June 2, 2022 02:27
Show Gist options
  • Save yatender-oktalk/c0e611aa839dbd7b8f359789e8c08ed3 to your computer and use it in GitHub Desktop.
Save yatender-oktalk/c0e611aa839dbd7b8f359789e8c08ed3 to your computer and use it in GitHub Desktop.
docker folder containing files to start private blockchain
services:
geth:
build: .
environment:
- ACCOUNT_PASSWORD=${ACCOUNT_PASSWORD}
ports:
- "8545:8545"
- "8546:8546"
- "30303:30303"
volumes:
- ../ethereum:/root
FROM ethereum/client-go:v1.10.17
ARG ACCOUNT_PASSWORD
ENTRYPOINT sleep infinity
{
"config": {
"chainId": 657483,
"homesteadBlock": 0,
"eip150Block": 0,
"eip155Block": 0,
"eip158Block": 0,
"byzantiumBlock": 0,
"constantinopleBlock": 0,
"petersburgBlock": 0,
"istanbulBlock": 0
},
"alloc": {
"0x0000000000000000000000000000000000000001": {
"balance": "111111111"
},
"0x0000000000000000000000000000000000000002": {
"balance": "222222222"
}
},
"coinbase": "0x0000000000000000000000000000000000000001",
"difficulty": "0x00001",
"extraData": "",
"gasLimit": "0x2fefd8",
"nonce": "0x0000000000004042",
"mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"timestamp": "0x00"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment