Files
ethereum-rpc-docker/bsc.yml
2024-03-23 17:04:48 +01:00

50 lines
2.1 KiB
YAML

version: '3.1'
services:
bsc:
image: ghcr.io/bnb-chain/bsc:1.3.12
user: root
ports:
- "29061:29061"
- "29061:29061/udp"
expose:
- "8545"
- "8546"
- "29061"
volumes:
- bsc:/bsc/node
- ./bsc/config:/bsc/config
environment:
GETH_HTTP_ADDR: 0.0.0.0
GETH_HTTP: 'true'
GETH_HTTP_PORT: 8545
GETH_HTTP_VHOSTS: '*'
GETH_WS: 'true'
GETH_WS_ADDR: 0.0.0.0
GETH_WS_PORT: 8545
GETH_WS_ORIGINS: '*'
GETH_DISCOVERY_PORT: 29061
GETH_PORT: 29061
GETH_DATADIR: /bsc/node
GETH_STATE_SCHEME: path
GETH_DB_ENGINE: pebble
GETH_SYNCMODE: full
GETH_HISTORY_TRANSACTIONS: 0
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: