34 lines
839 B
YAML
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:
|