version: '3.9'


services:
  otterscan:
    build:
      context: .
    command: |
      otter --http.addr=0.0.0.0 --http.vhosts=* --http.corsdomain=* --ws
      --http.api=eth,erigon,web3,net,trace,debug,txpool,ots
      --ots.beaconapi.url="http://localhost:3500"
      --ots.externalasset.url=""
      --private.api.addr=erigon:9090
      --txpool.api.addr=txpool:9094
      --datadir=/home/erigon/.local/share/erigon
      --metrics --metrics.addr=0.0.0.0 --metrics.port=6064
      --pprof --pprof.addr=0.0.0.0 --pprof.port=6000
    ports:
     - 3001:8545
