forked from cerc-io/stack-orchestrator
be08ee81ea
* Remove unnecessary todos
* Set option to log commands in shell scripts
* Replace fixturenet-eth dependency with wait on endpoint
* Skip lighthouse node dependency check
* Update all services in the stack
* Use debug flag to enable shell commands logging
* Add bash in op-batcher container
* Update mobymask-v2 instructions
* Update fixturenet-optimism instructions
* Add descriptions for services
* Move ts files to container-build
* Take L1 RPC endpoint from the env file
* Add dev mode restriction for editing env file
Former-commit-id: 2515878eeb
109 lines
3.1 KiB
YAML
109 lines
3.1 KiB
YAML
version: '3.7'
|
|
|
|
services:
|
|
fixturenet-eth-bootnode-geth:
|
|
hostname: fixturenet-eth-bootnode-geth
|
|
env_file:
|
|
- ../config/fixturenet-eth/fixturenet-eth.env
|
|
environment:
|
|
RUN_BOOTNODE: "true"
|
|
image: cerc/fixturenet-eth-geth:local
|
|
ports:
|
|
- "9898"
|
|
- "30303"
|
|
|
|
fixturenet-eth-geth-1:
|
|
hostname: fixturenet-eth-geth-1
|
|
cap_add:
|
|
- SYS_PTRACE
|
|
environment:
|
|
CERC_REMOTE_DEBUG: "true"
|
|
CERC_RUN_STATEDIFF: "detect"
|
|
CERC_STATEDIFF_DB_NODE_ID: 1
|
|
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
|
|
env_file:
|
|
- ../config/fixturenet-eth/fixturenet-eth.env
|
|
image: cerc/fixturenet-eth-geth:local
|
|
volumes:
|
|
- fixturenet_geth_accounts:/opt/testnet/build/el
|
|
healthcheck:
|
|
test: ["CMD", "nc", "-v", "localhost", "8545"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 10
|
|
start_period: 3s
|
|
depends_on:
|
|
- fixturenet-eth-bootnode-geth
|
|
ports:
|
|
- "8545"
|
|
- "40000"
|
|
- "6060"
|
|
|
|
fixturenet-eth-geth-2:
|
|
hostname: fixturenet-eth-geth-2
|
|
healthcheck:
|
|
test: ["CMD", "nc", "-v", "localhost", "8545"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 10
|
|
start_period: 3s
|
|
env_file:
|
|
- ../config/fixturenet-eth/fixturenet-eth.env
|
|
image: cerc/fixturenet-eth-geth:local
|
|
depends_on:
|
|
- fixturenet-eth-bootnode-geth
|
|
|
|
fixturenet-eth-bootnode-lighthouse:
|
|
hostname: fixturenet-eth-bootnode-lighthouse
|
|
environment:
|
|
RUN_BOOTNODE: "true"
|
|
image: cerc/fixturenet-eth-lighthouse:local
|
|
|
|
fixturenet-eth-lighthouse-1:
|
|
hostname: fixturenet-eth-lighthouse-1
|
|
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
|
|
env_file:
|
|
- ../config/fixturenet-eth/fixturenet-eth.env
|
|
environment:
|
|
NODE_NUMBER: "1"
|
|
ETH1_ENDPOINT: "http://fixturenet-eth-geth-1:8545"
|
|
EXECUTION_ENDPOINT: "http://fixturenet-eth-geth-1:8551"
|
|
image: cerc/fixturenet-eth-lighthouse:local
|
|
depends_on:
|
|
fixturenet-eth-bootnode-lighthouse:
|
|
condition: service_started
|
|
fixturenet-eth-geth-1:
|
|
condition: service_healthy
|
|
ports:
|
|
- "8001"
|
|
|
|
fixturenet-eth-lighthouse-2:
|
|
hostname: fixturenet-eth-lighthouse-2
|
|
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
|
|
env_file:
|
|
- ../config/fixturenet-eth/fixturenet-eth.env
|
|
environment:
|
|
NODE_NUMBER: "2"
|
|
ETH1_ENDPOINT: "http://fixturenet-eth-geth-2:8545"
|
|
EXECUTION_ENDPOINT: "http://fixturenet-eth-geth-2:8551"
|
|
LIGHTHOUSE_GENESIS_STATE_URL: "http://fixturenet-eth-lighthouse-1:8001/eth/v2/debug/beacon/states/0"
|
|
image: cerc/fixturenet-eth-lighthouse:local
|
|
depends_on:
|
|
fixturenet-eth-bootnode-lighthouse:
|
|
condition: service_started
|
|
fixturenet-eth-geth-2:
|
|
condition: service_healthy
|
|
|
|
volumes:
|
|
fixturenet_geth_accounts:
|