Created
May 4, 2022 09:20
-
-
Save ephdtrg/68a023e2cf5d34766b7f9d92c441d04d to your computer and use it in GitHub Desktop.
Geth on Docker Compose
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.7' | |
services: | |
geth: | |
image: ethereum/client-go:stable | |
restart: unless-stopped | |
expose: | |
- "8545" | |
- "8546" | |
- "30303" | |
volumes: | |
- /mnt/data/geth_mainnet:/root/.ethereum/ | |
command: "--syncmode 'full' --http --http.api eth,net,web3 --http.corsdomain '*' --http.addr 0.0.0.0 --ws --ws.api eth,net,web3 --ws.origins '*' --ws.addr 0.0.0.0" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment