bsc-stack/stack-orchestrator/compose/docker-compose-bsc-node.yml
Prathamesh Musale 7e42060541 Add config for geth dir path in snapshot archive (#2)
Part of [Create a stack to run a BSC node](https://www.notion.so/Create-a-stack-to-run-a-BSC-node-5740b35b02974661a0237dcf57ab8150)

Reviewed-on: #2
Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
2024-06-06 04:33:25 +00:00

34 lines
839 B
YAML

services:
bsc:
image: cerc/bsc-geth:local
restart: unless-stopped
environment:
CERC_BSC_NETWORK: ${CERC_BSC_NETWORK:-mainnet}
CERC_USE_SNAPSHOT: ${CERC_USE_SNAPSHOT:-false}
CERC_SNAPSHOT_GETH_PATH: ${CERC_SNAPSHOT_GETH_PATH}
CERC_FAST_NODE: ${CERC_FAST_NODE:-false}
CERC_GETH_GCMODE: ${CERC_GETH_GCMODE:-full}
CERC_GETH_VERBOSITY: ${CERC_GETH_VERBOSITY:-3}
volumes:
- ../config/bsc-node/docker-entrypoint.sh:/bsc/docker-entrypoint.sh
- data:/data
- bsc:/bsc
- snapshot:/var/tmp/snapshot
ports:
- "30303"
- "30311"
- "6060"
- "8545"
- "8546"
healthcheck:
test: ["CMD", "nc", "-vz", "localhost", "8545"]
interval: 5s
retries: 5
start_period: 10s
timeout: 3s
volumes:
data:
bsc:
snapshot: