# Define named volumes volumes: linea-mainnet-geth: name: "linea-mainnet-geth" linea-mainnet-besu: name: "linea-mainnet-besu" linea-mainnet-erigon: name: "linea-mainnet-erigon" linea-mainnet-nethermind: name: "linea-mainnet-nethermind" linea-mainnet-maru: name: "linea-mainnet-maru" # ───────────────────────────────────────────── # ⚠️ Execution Layer Clients Overview # Only one execution client is actively connected to the Maru Consensus Layer at a time # and is referenced in the Maru config.toml file as el-client # # The other EL clients are included here for reference or testing purposes only. # The user is free to choose any el client they want. # ───────────────────────────────────────────── services: # Besu node (Execution Layer for Maru) besu-node: hostname: el-client container_name: linea-besu image: consensys/linea-besu-package:2.4.0-20261119-6467df6 platform: linux/amd64 healthcheck: test: ["CMD-SHELL", "bash -c '[ -f /tmp/pid ]'"] interval: 1s timeout: 1s retries: 120 restart: unless-stopped ports: - "8545:8545" # JSON-RPC - "8546:8546" # WebSocket - "8550:8550" # Engine API (for Maru) - "30303:30303" # P2P TCP - "30303:30303/udp" # P2P UDP environment: - JAVA_OPTS=-Xmx2g - LOG4J_CONFIGURATION_FILE=/var/lib/besu/log4j.xml # - GOGC=off # TODO: Workaround for MacosX until blob compressor is fixed command: - --profile=advanced-mainnet # - --engine-jwt-disabled=false # Uncomment if engine-api jwt is enabled # - --engine-jwt-secret=/var/lib/besu/jwt # Uncomment if engine-api jwt is enabled volumes: - linea-mainnet-besu:/data - ./besu/log4j.xml:/var/lib/besu/log4j.xml ## Uncomment the below volumes section if engine-api jwt is enabled # volumes: # - YOUR_ENGINE_API_JWT:/var/lib/besu/jwt:ro # Maru Consensus Layer maru-node: hostname: linea-maru container_name: linea-maru image: consensys/maru:1.6.0-20261119-51ebdc0 restart: unless-stopped ports: - "8080:8080" # Beacon/REST API - "9000:9000/tcp" # P2P main port - "9000:9000/udp" # P2P discovery port (UDP only) - "9090:9090" # Metrics (optional) environment: - JAVA_OPTS=-Xmx2g volumes: - ./maru/maru-config.toml:/opt/consensys/maru/configs/maru-config.toml:ro - ./maru/log4j.xml:/opt/consensys/maru/configs/log4j.xml:ro - ./engine-jwt:/opt/consensys/maru/configs/jwt:ro - linea-mainnet-maru:/opt/maru command: - "java" - "-Dlog4j2.configurationFile=/opt/consensys/maru/configs/log4j.xml" - "-jar" - "/opt/consensys/maru/maru.jar" - "--network" - "linea-mainnet" - "--config" - "/opt/consensys/maru/configs/maru-config.toml" # Geth node geth-node: hostname: el-client container_name: geth-node image: ethereum/client-go:v1.17.4 pull_policy: always restart: unless-stopped stop_grace_period: 30s command: - --syncmode=snap - --http - --http.addr=0.0.0.0 - --http.port=8545 - --http.corsdomain=* - --http.api=admin,web3,eth,txpool,net - --http.vhosts=* - --bootnodes=enode://069800db9e6e0ec9cadca670994ef1aea2cfd3d88133e63ecadbc1cdbd1a5847b09838ee08d8b5f02a9c32ee13abeb4d4104bb5514e5322c9d7ee19f41ff3e51@3.132.73.210:31002,enode://97706526cf79df9d930003644f9156805f6c8bd964fc79e083444f7014ce10c9bdd2c5049e63b58040dca1d4c82ebef970822198cf0714de830cff4111534ff1@18.223.198.165:31004,enode://328a18615d5bd7993b2d6af452fd316be6e3a85716faedf4448b3f77713383a872d9f8f62f36407053b368872b109f65c3a74069a71204d3242aa283ff33312e@18.223.198.165:31000,enode://228e1b8a4931e46f383e30721dac21fb8fb4e5e1b32c870e13b25478c82db3dc1cd9e7ceb93d302a766466b55638cc9c5cbfc43aa48fa41ced19baf365951f76@3.1.142.64:31002,enode://c22eb0d40fc3ad5ea710aeddea906567778166bfe18c157955e8c39b23a46c45db18a0fa2ba07f2b64c81178a8c796aec2a29151533920ead06fcdfc6d8d03c6@47.128.192.57:31004,enode://b7c1b2bed65a855f7a2104aac9a14674dfdf018fdac763415b373b29ce18cdb81d36328ba4e5c9f12629f3a50c3e8f9ee048f22dbdbe93a82813da89c6b81334@51.20.235.126:31004,enode://c92b454bed3028c8dfafe0251cd00fc6bc5462a091c03c53569651c17782df88edc7722b29925e66c60bf8c516be00a47f252d9007cd1805653150f492527573@13.50.94.193:31000 - --verbosity=3 # Engine API / JWT auth - --authrpc.addr=0.0.0.0 - --authrpc.port=8550 - --authrpc.vhosts=* - --authrpc.jwtsecret=/root/.ethereum/jwt - --override.genesis=/genesis.json ports: - 30303:30303 - 30303:30303/udp - 8545:8545 - 8546:8546 - 8550:8550 volumes: - ./geth/geth-genesis.json:/genesis.json:ro - ./engine-jwt:/root/.ethereum/jwt:ro - linea-mainnet-geth:/root/.ethereum # Erigon initialization erigon-init: image: linea-erigon:v3.3.0-linea-patched # Run init as root so it can chown the chain-data volume for the non-root # erigon user (UID 1000) that erigon-node runs as. user: "0:0" entrypoint: ["/bin/sh", "-c"] command: - "erigon --datadir=/data init /genesis.json && chown -R 1000:1000 /data" volumes: - ./geth/geth-genesis.json:/genesis.json:ro - linea-mainnet-erigon:/data # Erigon node (requires --externalcl + Maru for Linea) erigon-node: hostname: el-client image: linea-erigon:v3.3.0-linea-patched restart: unless-stopped stop_grace_period: 30s depends_on: erigon-init: condition: service_completed_successfully command: - --datadir=/data - --networkid=59144 - --externalcl - --prune.mode=full - --http - --http.addr=0.0.0.0 - --http.port=8545 - --http.corsdomain=* - --http.api=admin,web3,eth,txpool,net - --http.vhosts=* - --bootnodes=enode://069800db9e6e0ec9cadca670994ef1aea2cfd3d88133e63ecadbc1cdbd1a5847b09838ee08d8b5f02a9c32ee13abeb4d4104bb5514e5322c9d7ee19f41ff3e51@3.132.73.210:31002,enode://97706526cf79df9d930003644f9156805f6c8bd964fc79e083444f7014ce10c9bdd2c5049e63b58040dca1d4c82ebef970822198cf0714de830cff4111534ff1@18.223.198.165:31004,enode://328a18615d5bd7993b2d6af452fd316be6e3a85716faedf4448b3f77713383a872d9f8f62f36407053b368872b109f65c3a74069a71204d3242aa283ff33312e@18.223.198.165:31000,enode://228e1b8a4931e46f383e30721dac21fb8fb4e5e1b32c870e13b25478c82db3dc1cd9e7ceb93d302a766466b55638cc9c5cbfc43aa48fa41ced19baf365951f76@3.1.142.64:31002,enode://c22eb0d40fc3ad5ea710aeddea906567778166bfe18c157955e8c39b23a46c45db18a0fa2ba07f2b64c81178a8c796aec2a29151533920ead06fcdfc6d8d03c6@47.128.192.57:31004,enode://b7c1b2bed65a855f7a2104aac9a14674dfdf018fdac763415b373b29ce18cdb81d36328ba4e5c9f12629f3a50c3e8f9ee048f22dbdbe93a82813da89c6b81334@51.20.235.126:31004,enode://c92b454bed3028c8dfafe0251cd00fc6bc5462a091c03c53569651c17782df88edc7722b29925e66c60bf8c516be00a47f252d9007cd1805653150f492527573@13.50.94.193:31000 - --verbosity=3 - --authrpc.addr=0.0.0.0 - --authrpc.port=8550 - --authrpc.vhosts=* - --authrpc.jwtsecret=/data/jwt ports: - 30303:30303 - 30303:30303/udp - 8545:8545 - 8550:8550 volumes: - ./geth/geth-genesis.json:/genesis.json:ro - ./engine-jwt:/data/jwt:ro - linea-mainnet-erigon:/data # Nethermind node nethermind-node: hostname: nethermind-node container_name: nethermind-node image: nethermind/nethermind:1.32.4 restart: unless-stopped command: - --datadir /nethermind/nethermind_db - --config linea-mainnet - --JsonRpc.Enabled=true - --JsonRpc.Host=0.0.0.0 - --JsonRpc.Port=8545 - --Metrics.Enabled=true - --Metrics.ExposePort=8008 ports: - 8545:8545 - 8008:8008 volumes: - linea-mainnet-nethermind:/nethermind/nethermind_db