36 lines
1.9 KiB
YAML
36 lines
1.9 KiB
YAML
version: '3.1'
|
|
|
|
services:
|
|
|
|
bsc:
|
|
image: ghcr.io/bnb-chain/bsc:1.4.9
|
|
user: root
|
|
ports:
|
|
- "29061:29061"
|
|
- "29061:29061/udp"
|
|
expose:
|
|
- "8545"
|
|
- "8546"
|
|
- "29061"
|
|
volumes:
|
|
- bsc:/bsc/.ethereum
|
|
- ./bsc/config:/bsc/config
|
|
entrypoint: geth
|
|
command: --config=/bsc/config/config.toml --ws.origins='*' --history.transactions=0 --state.scheme=path --syncmode=full --db.engine=pebble --rpc.gascap=600000000
|
|
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:
|
|
|