Skip to content

Instantly share code, notes, and snippets.

@ephdtrg
Created May 4, 2022 09:20
Show Gist options
  • Save ephdtrg/68a023e2cf5d34766b7f9d92c441d04d to your computer and use it in GitHub Desktop.
Save ephdtrg/68a023e2cf5d34766b7f9d92c441d04d to your computer and use it in GitHub Desktop.
Geth on Docker Compose
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