Skip to content

Instantly share code, notes, and snippets.

@voron
Created December 1, 2020 09:19
Show Gist options
  • Save voron/7cf17276087fc481a42215c7db1e2613 to your computer and use it in GitHub Desktop.
Save voron/7cf17276087fc481a42215c7db1e2613 to your computer and use it in GitHub Desktop.
geth compose
version: "3.1"
services:
geth:
image: ethereum/client-go
container_name: geth
restart: always
stop_grace_period: 1h
command:
- --http
- --http.addr=0.0.0.0
- --http.port=8545
- --http.vhosts=*
- --http.api=eth,net,web3,txpool
- --ws
- --ws.addr=0.0.0.0
- --ws.port=8546
- --ws.origins=*
- --ws.api=eth,net,web3,txpool
- --syncmode=fast
# - --txlookuplimit=100000
- --cache=4096
- --nousb
# - --txpool.accountslots=128
# - --txpool.globalslots=1048576
# - --txpool.accountqueue=1024
# - --txpool.globalqueue=1048576
volumes:
- /srv/docker/geth:/root
# environment:
ports:
- "30303:30303"
- "30303:30303/udp"
networks:
- internal
networks:
internal:
ipam:
config:
- subnet: 172.22.0.0/16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment