64 lines
1.9 KiB
YAML
64 lines
1.9 KiB
YAML
services:
|
|
eth-geth:
|
|
restart: on-failure
|
|
hostname: eth-geth
|
|
image: ethereum/client-go:alltools-v1.14.8
|
|
env_file:
|
|
- ../config/eth/params.env
|
|
environment:
|
|
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
|
|
CERC_NETWORK: ${CERC_NETWORK:-sepolia}
|
|
CERC_ALLOW_UNPROTECTED_TXS: ${CERC_ALLOW_UNPROTECTED_TXS:-false}
|
|
CERC_ETH_DATADIR: ${CERC_ETH_DATADIR:-/root/ethdata}
|
|
CERC_GETH_VERBOSITY: ${CERC_GETH_VERBOSITY:-3}
|
|
entrypoint: ["sh", "-c"]
|
|
command: |
|
|
"/root/scripts/run-el.sh"
|
|
volumes:
|
|
- eth_geth_data:/root/.ethereum
|
|
- ../config/eth/run-el.sh:/root/scripts/run-el.sh
|
|
healthcheck:
|
|
test: ["CMD", "nc", "-v", "localhost", "8545"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 10
|
|
start_period: 3s
|
|
ports:
|
|
- "8545"
|
|
- "8546"
|
|
- "6060"
|
|
|
|
eth-lighthouse:
|
|
restart: on-failure
|
|
hostname: eth-lighthouse
|
|
image: sigp/lighthouse:v5.3.0
|
|
depends_on:
|
|
eth-geth:
|
|
condition: service_healthy
|
|
env_file:
|
|
- ../config/eth/params.env
|
|
environment:
|
|
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
|
|
ETH_ENDPOINT: "http://eth-geth:8545"
|
|
EXECUTION_ENDPOINT: "http://eth-geth:8551"
|
|
CERC_NETWORK: ${CERC_NETWORK:-sepolia}
|
|
CERC_LIGHTHOUSE_DATADIR: ${CERC_LIGHTHOUSE_DATADIR:-/root/.lighthouse}
|
|
CERC_CHECKPOINT_SYNC_URL: ${CERC_CHECKPOINT_SYNC_URL}
|
|
CERC_DEBUG_LEVEL: ${CERC_DEBUG_LEVEL:-info}
|
|
command: bash /root/scripts/run-cl.sh
|
|
volumes:
|
|
- eth_lighthouse_data:/root/.lighthouse
|
|
- ../config/eth/run-cl.sh:/root/scripts/run-cl.sh
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--tries=1", "--connect-timeout=1", "--quiet", "-O", "-", "http://localhost:8001/eth/v2/beacon/blocks/head"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 10
|
|
start_period: 30s
|
|
ports:
|
|
- "8001"
|
|
|
|
volumes:
|
|
eth_geth_data:
|
|
eth_lighthouse_data:
|