Files
hub-monorepo/apps/hubble/docker-compose.yml
Tony D'Addeo 6fc291e636 feat: limit logs to 7gb when run with docker compose (#1136)
* feat: limit logs to 7gb when run with docker compose

* feat(hubble): reduce log files to 2x1GB in docker compose

---------

Co-authored-by: Varun Srinivasan <varunsrin@gmail.com>
2023-07-14 22:08:28 -07:00

19 lines
613 B
YAML

version: '3.9'
services:
hubble:
image: farcasterxyz/hubble:latest
restart: unless-stopped
command: ["yarn", "start", "--ip", "0.0.0.0", "--gossip-port", "2282", "--rpc-port", "2283", "--eth-rpc-url", "$ETH_RPC_URL", "--eth-mainnet-rpc-url", "$ETH_MAINNET_RPC_URL", "--network", "$FC_NETWORK_ID", "-b", "$BOOTSTRAP_NODE"]
ports:
- '2282:2282' # Gossip
- '2283:2283' # RPC
volumes:
- ./.hub:/home/node/app/apps/hubble/.hub
- ./.rocks:/home/node/app/apps/hubble/.rocks
logging:
driver: "json-file"
options:
max-size: "1g"
max-file: "2"