Files
ethereum-rpc-docker/bsc.yml
squidbear 64dd0ab387 update
2025-03-21 09:43:32 +01:00

36 lines
1.9 KiB
YAML

version: '3.1'
services:
bsc:
image: ghcr.io/bnb-chain/bsc:${BSC_VERSION:-1.5.7}
user: root
ports:
- "29061:29061"
- "29061:29061/udp"
expose:
- "8545"
- "29061"
volumes:
- bsc:/bsc/.ethereum
- ./bsc/config:/bsc/config
- /slowdisk:/slowdisk
entrypoint: geth
command: --config=/bsc/config/config.toml --ws.origins='*' --history.transactions=0 --state.scheme=path --syncmode=full --db.engine=pebble --rpc.gascap=600000000 --nat=extip:${IP}
restart: unless-stopped
stop_grace_period: 3m
networks:
- chains
labels:
- "traefik.enable=true"
- "traefik.http.middlewares.bsc-stripprefix.stripprefix.prefixes=/bsc"
- "traefik.http.services.bsc.loadbalancer.server.port=8545"
- "traefik.http.routers.bsc.entrypoints=websecure"
- "traefik.http.routers.bsc.tls.certresolver=myresolver"
- "traefik.http.routers.bsc.rule=Host(`$DOMAIN`) && PathPrefix(`/bsc`)"
- "traefik.http.routers.bsc.middlewares=bsc-stripprefix, ipwhitelist"
volumes:
bsc: