version: '3.1' services: bsc: image: ghcr.io/bnb-chain/bsc:${BSC_VERSION:-1.5.5} user: root ports: - "29061:29061" - "29061:29061/udp" expose: - "8545" - "8546" - "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: